Skip to content

Commit

Permalink
jamesallardice#106 Fix maxLength undefined value
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadym Abramchuk committed Aug 25, 2016
1 parent 144ee9d commit 3054455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/placeholders.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@
// Store and remove the maxlength value.
var maxLength = elem.getAttribute(ATTR_MAXLENGTH);
if ( !maxLength ) {
elem.setAttribute(ATTR_MAXLENGTH, elem.maxLength);
elem.setAttribute(ATTR_MAXLENGTH, elem.getAttribute('maxLength'));
elem.removeAttribute('maxLength');
}

Expand Down

0 comments on commit 3054455

Please sign in to comment.