Skip to content
This repository
Browse code

Merge branch 'dev'

  • Loading branch information...
commit ba4308b19775737dcdccd99336dd943217c1d3bd 2 parents 56aa47f + be307f2
Robin Herbots authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 js/jquery.inputmask.js
4 js/jquery.inputmask.js
@@ -3,7 +3,7 @@
3 3 * http://github.com/RobinHerbots/jquery.inputmask
4 4 * Copyright (c) 2010 - 2012 Robin Herbots
5 5 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
6   -* Version: 1.0.20
  6 +* Version: 1.0.20a
7 7 */
8 8
9 9 (function ($) {
@@ -521,7 +521,7 @@
521 521
522 522 //handle maxlength attribute
523 523 var maxLength = $input.prop('maxLength');
524   - if (getMaskLength() > maxLength) {
  524 + if (getMaskLength() > maxLength && maxLength > -1) { //FF sets no defined max length to -1
525 525 if (maxLength < _buffer.length) _buffer.length = maxLength;
526 526 if (opts.greedy == false) {
527 527 opts.repeat = Math.round(maxLength / _buffer.length);

0 comments on commit ba4308b

Please sign in to comment.
Something went wrong with that request. Please try again.