ソースを参照

fix selection on focus when mask is complete

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

+ 1 - 1
jquery.inputmask.js

@@ -169,7 +169,7 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
                     var pos = checkVal();
                     writeBuffer();
                     setTimeout(function() {
-                        if (pos == _buffer.length)
+                        if (pos >= _buffer.length)
                             caret(input, 0, pos);
                         else
                             caret(input, pos);