RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.4k stars 2.16k forks source link

Numeric mask in IE 11 only allowing 1 number to be typed #2026

Open Tsukasa42 opened 6 years ago

Tsukasa42 commented 6 years ago

Having an issue with IE 11 where I can only type the first number when using the following mask for phone numbers. Doesn't happen in Chrome or FireFox. Same results under 3.3.1 and 4.0.3-beta.4

$(this).inputmask({ mask: "(999) 999-9999", placeholder: "(***) ***-****", clearIncomplete: true });

RobinHerbots commented 6 years ago

@ptyriver ,

Can you reproduce this in a codepen or jsfiddle. I tried the above mask in IE11 and don't experience the issue.

Tsukasa42 commented 6 years ago

I'm still doing some testing to pinpoint the cause. Codepen and jsfiddle do not support IE 11. I believe the issue comes when using the masking with custom inputs within SweetAlert2. Just wanted to give you a quick update.