Skip to content

Commit

Permalink
fixed issue preventing password placeholder from working
Browse files Browse the repository at this point in the history
  • Loading branch information
amerikan committed Nov 5, 2015
1 parent 97cbcf0 commit 8ed7d4a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions jquery.placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 === '') {
Expand Down

0 comments on commit 8ed7d4a

Please sign in to comment.