We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi there 馃憢
iPhone
Safary/Chrome
I'm using the plugin like in the code example
var mask0 = '0000 0000 0000 0000 000'; var mask1 = '0000-0000-0000-0000'; var mask2 = 'DDDD DDDD DDDD DDDD DDD'; input.mask(mask0, { translation: { 0: { pattern: /[A-Za-z0-9]/ }, D: { pattern: /[0-9]/ } }, onKeyPress: (val, e, field, options) => { var mask; if (val === '') { mask = mask0; } else if (/^123/.test(val)) { mask = mask2; } else { mask = mask1; } input.mask(mask, options); } });
and it works great, but the only problem is that on mobile devices when a user pasting the copied value into the masked field the next error occurs
TypeError: undefined is not an object (evaluating 'p.maskDigitPosMapOld[i]')
jQuery-Mask-Plugin/src/jquery.mask.js
Line 224 in bfd14b5
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi there 馃憢
Device
iPhone
Browser (and version)?
Safary/Chrome
Describe de problem depth:
I'm using the plugin like in the code example
and it works great, but the only problem is that on mobile devices when a user pasting the copied value into the masked field the next error occurs
jQuery-Mask-Plugin/src/jquery.mask.js
Line 224 in bfd14b5
The text was updated successfully, but these errors were encountered: