Browse Source

should fix issue 145

Robin Herbots 13 years ago
parent
commit
88f1f68853
1 changed files with 2 additions and 2 deletions
  1. 2 2
      js/jquery.inputmask.js

+ 2 - 2
js/jquery.inputmask.js

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