-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🛠 - Investigate other mask options #120
Comments
ngx-mask doesn't work on Ionic. |
Thank you for raising this issue. Yes, we would like to migrate to another mask solution at some point. I have refactored work with mask in input a little. Now if you were to use angular2-text-mask — you could set it directly on |
I can highly recommend angular-imask which uses imask.js under the hood. Which would be a bit bigger in comparison |
Don't use ngx-mask. |
Support this opinion. We take it for our project and have some pain moments. Primarily, ngx-mask works normally only with type=text. Mobile users be frustrated by strange keyboard type selection with it |
Also, this is blocking because we are unable to run Unit Tests because of this lib text-mask/text-mask#1019
|
I believe that's unrelated. It is something with Jest and ngcc not working properly with Ivy. |
Maybe @ngneat/input-mask could be a good alternative? |
I believe we looked into it and decided not to go with it. Writing our own mask solution seems to be the way to go, especially since it would be in demand at our company outside Angular scope as well. So this is one of the supertasks for 3.0 we plan to get to in a couple of weeks. |
Worth noting that |
I believe we dropped |
The copy-pasted version is marked as |
Angular v16 was just released where they dropped |
Maskito is ready to use it inside Taiga UI, yep. |
Awesome 🙂 |
Full list with masked Taiga’s inputs:
|
🚀 Feature request
Is your feature request related to a problem?
Last release of angular2-text-mask was about 3 years ago. Currently this project is not maintained. Using this library results in a build-time warning:
Warning: /node_modules/@taiga-ui/kit/ivy_ngcc/fesm2015/taiga-ui-kit-components-input-range.js depends on 'angular2-text-mask'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
There is a possibility to switch off this warning. But I'm always frustrated when something can cause optimization bailouts. =)
Describe the solution you'd like
Maybe it would be better to migrate to ngx-mask (https://github.com/JsDaddy/ngx-mask). This project looks alive.
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: