Robin Herbots 8 年 前
コミット
0714b322ca
1 ファイル変更2 行追加2 行削除
  1. 2 2
      js/inputmask.js

+ 2 - 2
js/inputmask.js

@@ -801,7 +801,7 @@
                             maskTemplate.push(includeMode === false ? test.nativeDef : getPlaceholder(pos, test));
                         }
                     }
-                    if (opts.keepStatic == true) {
+                    if (opts.keepStatic === true) {
                         if (test.newBlockMarker && test.fn !== null) {
                             opts.keepStatic = pos - 1;
                         }
@@ -1727,7 +1727,7 @@
                             }
                         }
                     }
-                    if (result === false && opts.keepStatic && !strict && fromAlternate !== true) { //try fuzzy alternator logic
+                    if (result === false && opts.keepStatic !== false && !strict && fromAlternate !== true) { //try fuzzy alternator logic
                         result = alternate(maskPos, c, strict, fromSetValid);
                     }
                     if (result === true) {