Browse Source

fix chrome 32

Robin Herbots 12 years ago
parent
commit
efabc03067
1 changed files with 2 additions and 2 deletions
  1. 2 2
      js/jquery.inputmask.js

+ 2 - 2
js/jquery.inputmask.js

@@ -1178,11 +1178,11 @@
                 }
                 var input = this, $input = $(input);
 
+				setTimeout(function(){
                 //backspace in chrome32 only fires input event - detect & treat
                 var caretPos = caret(input),
                     currentValue = input._valueGet();
                 if (currentValue.charAt(caretPos.begin) != getActiveBuffer()[caretPos.begin] && !isMask(caretPos.begin)) {
-                    caret(input, seekNext(caretPos.begin));
                     e.keyCode = opts.keyCode.BACKSPACE;
                     keydownEvent.call(input, e);
                 } else {
@@ -1192,7 +1192,7 @@
                         $input.trigger("complete");
                     $input.click();
                 }
-                
+                },0);
                 e.preventDefault()
             }