From 8ed7d4a77a43b400f347576c084a22a26f9f0245 Mon Sep 17 00:00:00 2001 From: Erik Montes Date: Thu, 5 Nov 2015 09:45:30 -0800 Subject: [PATCH] fixed issue preventing password placeholder from working --- jquery.placeholder.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/jquery.placeholder.js b/jquery.placeholder.js index 05182df..ab3a025 100644 --- a/jquery.placeholder.js +++ b/jquery.placeholder.js @@ -208,18 +208,8 @@ var id = input.id; // If the placeholder is activated, triggering blur event (`$input.trigger('blur')`) should do nothing. - if (event && event.type === 'blur') { - - if ($input.hasClass(settings.customClass)) { - return; - } - - if (input.type === 'password') { - $replacement = $input.prevAll('input[type="text"]:first'); - if ($replacement.length > 0 && $replacement.is(':visible')) { - return; - } - } + if (event && event.type === 'blur' && $input.hasClass(settings.customClass)) { + return; } if (input.value === '') {