Browse Source

Merge branch '2.x' into 2.6

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

+ 2 - 1
js/jquery.inputmask.js

@@ -1267,7 +1267,8 @@
                             $input.prop("title", getActiveMaskSet()["mask"]);
                         }
 
-                        if (e) e.preventDefault();
+                        //needed for IE8 and below
+                        if (e) e.preventDefault ? e.preventDefault() : e.returnValue = false;
                     }
                 }
             }