We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a70eee6 commit 35d69feCopy full SHA for 35d69fe
src/jquery.maskedinput.js
@@ -313,8 +313,9 @@
313
.bind("keypress.mask", keypressEvent)
314
.bind(pasteEventName, function() {
315
setTimeout(function() {
316
- input.caret(checkVal(true));
317
- if (settings.completed && checkVal(true) == input.val().length)
+ var pos=checkVal(true);
+ input.caret(pos);
318
+ if (settings.completed && pos == input.val().length)
319
settings.completed.call(input);
320
}, 0);
321
});
0 commit comments