Skip to content

Commit 2fae445

Browse files
committed
Fix backspace caret position.
1 parent 34d579f commit 2fae445

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/jquery.maskedinput.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@
7474
break
7575
}
7676
buffer.splice(i, 1);
77-
return this.apply(buffer.join(''), i);
77+
var result= this.apply(buffer.join(''), i);
78+
result.pos=i;
79+
return result;
7880
}
7981

8082
FixedWidthMask.prototype.applyDelete = function(input, pos){

0 commit comments

Comments
 (0)