Browse Source

yet a minor fix for the delete behavior

Robin Herbots 11 years ago
parent
commit
01bc1ea819
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/jquery.inputmask.numeric.extensions.js

+ 1 - 1
js/jquery.inputmask.numeric.extensions.js

@@ -159,7 +159,7 @@ Optional extensions on the jquery.inputmask base
 
                 if (opts.autoGroup) {
                     var rslt = opts.postFormat(buffer, caretPos - 1, true, opts);
-                    rslt.caret = caretPos == 0 ? caretPos : rslt.pos + 1;
+                    rslt.caret = caretPos <= opts.prefix.length ? rslt.pos : rslt.pos + 1;
                     return rslt;
                 }
             },