浏览代码

fix caret does not restore its position on focus in IE

Shukhrat Mukimov 10 年之前
父节点
当前提交
e3b9d1b118
共有 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 () {