Skip to content

Commit

Permalink
Fixing a goof that wrote the buffer back to input whenever .mask() wa…
Browse files Browse the repository at this point in the history
…s called.
  • Loading branch information
digitalBush committed Feb 10, 2011
1 parent 9dba9a6 commit b0c0009
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/jquery.maskedinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,8 @@
};

input.data($.mask.dataName,function(){
var pos=checkVal(true);
return $.map(buffer, function(c, i) {
return tests[i]&&i<pos ? c : null;
return tests[i]&&c!=settings.placeholder ? c : null;
}).join('');
})

Expand Down

0 comments on commit b0c0009

Please sign in to comment.