Browse Source

another fix for chrome mobile

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

+ 3 - 2
js/jquery.inputmask.js

@@ -1140,11 +1140,12 @@
                             var input = this, $input = $(input);
 
                             setTimeout(function () {
-                                checkVal(input, true, false);
+                                checkVal(input, false, false);
+                                writeBuffer(input, getActiveBuffer());
                                 if (isComplete(getActiveBuffer()) === true)
                                     $input.trigger("complete");
                                 $input.click();
-                            }, 0);
+                            }, 100);
                         });
                     } else {
                         $el.bind("keydown.inputmask", keydownEvent