toscani icon indicating copy to clipboard operation
toscani copied to clipboard

Firefox: Spacing between digits

Open mstuart opened this issue 12 years ago • 3 comments

In Firefox 14 for Mac, when typing digits in the credit card field... groups of digits aren't separated by a space like in other browsers.

mstuart avatar Jan 30 '13 21:01 mstuart

Any JavaScript errors? Chances are, there is a problem with the input mask plugin.

zdfs avatar Jan 30 '13 21:01 zdfs

Yes! there is... This is what I see in my FireBug console on line 280 of jquery.inputmask.js.

Error: useless setTimeout call (missing quotes around argument?) [Break On This Error]

Looks like opts.onKeyValidation.call(this, result, opts) resolves to undefined, so it causes the setTimeout to break.

setTimeout(opts.onKeyValidation.call(this, result, opts), 0); //extra stuff to execute on keydown

mstuart avatar Jan 30 '13 22:01 mstuart

+1

felixtriller avatar Jan 31 '13 09:01 felixtriller