ソースを参照

Merge pull request #915 from mukimov/3.x

fix caret does not restore its position on focus
Robin Herbots 10 年 前
コミット
376ec42c8e
1 ファイル変更2 行追加0 行削除
  1. 2 0
      js/jquery.inputmask.js

+ 2 - 0
js/jquery.inputmask.js

@@ -1870,6 +1870,8 @@
                             if (input._valueGet() != getBuffer().join('')) {
                                 writeBuffer(input, getBuffer(), seekNext(getLastValidPosition()));
                             }
+                        } else {
+                          caret(input, seekNext(getLastValidPosition()));
                         }
                         undoValue = getBuffer().join('');
                     }).bind("mouseleave.inputmask", function () {