Merge pull request #356 from mesaugat/patch-1

Fix caret position when lazyInit and mask is set to true.
This commit is contained in:
Valeriy 2015-11-17 11:30:37 +05:00
commit ece0678bd2

View File

@ -1156,6 +1156,7 @@
if ($.type(options.mask) === 'string') {
if (!isValidValue(options.mask, input.val())) {
input.val(options.mask.replace(/[0-9]/g, '_'));
setCaretPos(input[0], 0);
}
input.on('keydown.xdsoft', function (event) {