Skip to content

Commit 776e077

Browse files
committed
Merge pull request digitalBush#296 from jimmykane/master
Fix oldVal not beeing set
2 parents 9333fdc + 24c3bfa commit 776e077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.maskedinput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ $.fn.extend({
199199
function androidInputEvent(e) {
200200
var curVal = input.val();
201201
var pos = input.caret();
202-
if (curVal.length < oldVal.length) {
202+
if (oldVal && oldVal.length && oldVal.length > curVal.length ) {
203203
// a deletion or backspace happened
204204
checkVal(true);
205205
while (pos.begin > 0 && !tests[pos.begin-1])

0 commit comments

Comments
 (0)