We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9333fdc + 24c3bfa commit 776e077Copy full SHA for 776e077
src/jquery.maskedinput.js
@@ -199,7 +199,7 @@ $.fn.extend({
199
function androidInputEvent(e) {
200
var curVal = input.val();
201
var pos = input.caret();
202
- if (curVal.length < oldVal.length) {
+ if (oldVal && oldVal.length && oldVal.length > curVal.length ) {
203
// a deletion or backspace happened
204
checkVal(true);
205
while (pos.begin > 0 && !tests[pos.begin-1])
0 commit comments