RobinHerbots / Inputmask

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

Library not working with WebComponents built with Stencil.js #2432

Open giorgiogalassi opened 3 years ago

giorgiogalassi commented 3 years ago

Describe the bug: Some features are not working as expected when using the library in combination with WebComponents built with StencilJS.

Example: When we edit a string, based on a mask, when we delete a char the cursor jumps to the end of the string. The UX is this case is pretty annoying.

OS: @stencil/core - 2.3.0 @angular/core - 9+ @ionic/core - 5+

Browsers: Chrome, Safari, FireFox, IE11

Devices: iOS, Android

Inputmask version: inputmask - 4.0.8

Thanks for the support, G.

embargiel commented 3 years ago

I am using a library for numeric, dates, and currencies in Stencil and I didn't observe problems. Can you show your config?

trazek commented 3 years ago

I also have issues importing and get the following warning

[ WARN  ]  Bundling Warning EVAL
           Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification

If it uses eval under the hood, could be a red flag as well