-
Notifications
You must be signed in to change notification settings - Fork 300
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
Changing "hiddenInput" breaks the entered value #1008
Comments
@gultyaev Thank you that you using ngx-mask . Please try version >=13.1.11 |
@xakeppok tried [email protected]. Looks like it's not there |
@gultyaev sorry. My mistake >=14.0.2 |
Any chance it could arrive in v13? |
Hey @xakeppok We're using ngx-mask@12 version as we are using angular version set to v12. It's not possible for us to upgrade the angular version due to the timelines. Is it possible to fix this issue for version 12 of ngx-mask as a patch version ? Reproducible link: https://stackblitz.com/edit/test-ngx-mask-6j2szn?file=src%2Fapp%2Fapp.component.html&hideDevTools=1
|
@NepipenkoIgor @andriikamaldinov1 Any plans to fix this for v12 ? |
@rushabh-wadkar Thanks for using Ngx-mask. We have added updated version for 12 angular this is 13.2.1 |
🐞 bug report
Is this a regression?
The bug was introduced by this commit 4dcd683
Description
When used a mask which hides entered values fully or partially there is a bug when you switch the
hiddenInput
value. If the value is entered whenhiddenInput
is true, then when turning it off we lose a half of the entered value. If instead it was false and then turned on the value stays intact.🔬 Minimal Reproduction
Was not able to create a reproduction as latest version of the lib isn't working with the latest Angular. But should be smth like it
https://stackblitz.com/edit/angular-ivy-mask-cabthi?file=src%2Fapp%2Fapp.component.ts
🌍 Your Environment
Angular Version: any. Not related to the Angular's version
Anything else relevant?
I discovered that the cause is the line 58
if (this.hiddenInput && !this.writingValue) {
ofmask.service.ts
. If changed toif (this.hiddenInput) {
then the issue is not reproducible anymore.The text was updated successfully, but these errors were encountered: