mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Merge pull request #356 from mesaugat/patch-1
Fix caret position when lazyInit and mask is set to true.
This commit is contained in:
commit
ece0678bd2
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user