jQuery-Mask-Plugin icon indicating copy to clipboard operation
jQuery-Mask-Plugin copied to clipboard

Using masked input on Bootstrap 4 Modal

Open fel486 opened this issue 9 years ago • 3 comments

Chrome 61 Win10 x64.

There's a issue on using your plugin on Bootstrap 4 modals. When I apply the mask for the input field and type on this one, it keeps "flickering" (alterning between masked and common text), so it doesn't applies and I am unable to get the field correctly formated for my date. However, bootstrap-datepicker works normally. Already questioned on BS4 issues and they told to talk to plugin's author.

Below the basic example I tried to do. The mask is applied when modal opens (also tried without opening callback and same result.)

image

fel486 avatar Oct 21 '17 22:10 fel486

Can you provide a functional jsfiddle as stated on the temples you got when opened this issue?

Thanks a lot!

On 21 Oct 2017 11:36 pm, "Felipe S. Fernandes" [email protected] wrote:

Chrome 61 Win10 x64.

There's a issue on using your plugin on Bootstrap 4 modals. When I apply the mask for the input field and type on this one, it keeps "flickering" (alterning between masked and common text), so it doesn't applies and I am unable to get the field correctly formated for my date. However, bootstrap-datepicker works normally. Already questioned on BS4 issues and they told to talk to plugin's author.

Below the basic example I tried to do. The mask is applied when modal opens (also tried without opening callback and same result.)

[image: image] https://user-images.githubusercontent.com/10427954/31856421-232f2b46-b697-11e7-8036-b31a960cb2e5.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/igorescobar/jQuery-Mask-Plugin/issues/620, or mute the thread https://github.com/notifications/unsubscribe-auth/AABd4Jqhn7kSICgdor5Oj11Ba_c4Og_Kks5sunH5gaJpZM4QBvXQ .

igorescobar avatar Oct 22 '17 00:10 igorescobar

Also helps to note the browsers in which you are seeing this issue; Webkit and Blink browsers (Safari and Chrome, basically) and Edge have a native date input, so trying to mask that (especially with the format you're using) would cause some issues.

tiesont avatar Oct 22 '17 17:10 tiesont

@felzend I will open this again once you provide a jsfiddle. Thanks!

igorescobar avatar Oct 23 '17 10:10 igorescobar