Browse Source

issue 14: position correctly the caret when applying the mask

Robin Herbots 14 years ago
parent
commit
acc39d6867
1 changed files with 1 additions and 1 deletions
  1. 1 1
      jquery.inputmask.js

+ 1 - 1
jquery.inputmask.js

@@ -559,7 +559,7 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
                 }
                 }
 
 
                 setTimeout(function() {
                 setTimeout(function() {
-                    checkVal(input, buffer, true);
+                    caret(input, checkVal(input, buffer, true));
                     if (opts.clearMaskOnLostFocus && _val.call(input) == _buffer.join(''))
                     if (opts.clearMaskOnLostFocus && _val.call(input) == _buffer.join(''))
                         _val.call(input, '');
                         _val.call(input, '');
                 }, 0);
                 }, 0);