Browse Source

fix caret does not restore its position on focus in IE

Shukhrat Mukimov 10 years ago
parent
commit
e3b9d1b118
1 changed files with 2 additions and 0 deletions
  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 () {