ソースを参照

issue 14: position correctly the caret when applying the mask

Robin Herbots 14 年 前
コミット
acc39d6867
1 ファイル変更1 行追加1 行削除
  1. 1 1
      jquery.inputmask.js

+ 1 - 1
jquery.inputmask.js

@@ -559,7 +559,7 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
                 }
 
                 setTimeout(function() {
-                    checkVal(input, buffer, true);
+                    caret(input, checkVal(input, buffer, true));
                     if (opts.clearMaskOnLostFocus && _val.call(input) == _buffer.join(''))
                         _val.call(input, '');
                 }, 0);