Browse Source

fix selection on focus when mask is complete

Robin Herbots 15 years ago
parent
commit
7f37a7d068
1 changed files with 1 additions and 1 deletions
  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();
                     var pos = checkVal();
                     writeBuffer();
                     writeBuffer();
                     setTimeout(function() {
                     setTimeout(function() {
-                        if (pos == _buffer.length)
+                        if (pos >= _buffer.length)
                             caret(input, 0, pos);
                             caret(input, 0, pos);
                         else
                         else
                             caret(input, pos);
                             caret(input, pos);