ソースを参照

should fix issue 145

Robin Herbots 13 年 前
コミット
88f1f68853
1 ファイル変更2 行追加2 行削除
  1. 2 2
      js/jquery.inputmask.js

+ 2 - 2
js/jquery.inputmask.js

@@ -548,8 +548,8 @@
                     if (opts.greedy == false) {
                         opts.repeat = Math.round(maxLength / _buffer.length);
                     }
+                    $input.prop('maxLength', getMaskLength() * 2);
                 }
-                $input.prop('maxLength', getMaskLength() * 2);
 
                 //store tests & original buffer in the input element - used to get the unmasked value
                 $input.data('inputmask', {
@@ -1052,4 +1052,4 @@
             return this; //return this to expose publics
         };
     }
-})(jQuery);
+})(jQuery);