Skip to content

Commit b68d6b5

Browse files
author
Igor Escobar
committed
trying to fix caret position for those who type as fast as a thunder.
1 parent 3f89d77 commit b68d6b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.mask.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230

231231
if (caretPosNew > oldValL) {
232232
// if the cursor is at the end keep it there
233-
caretPosNew = newValL;
233+
caretPosNew = newValL * 10;
234234
}
235235
else if (caretPosOld >= caretPosNew && caretPosOld !== oldValL) {
236236
if (!p.maskDigitPosMapOld[caretPosNew]) {

0 commit comments

Comments
 (0)