-
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
Toggling hiddenInput on/off display incorrect value. #706
Comments
I have a similar issue: Issue Situation Possible Solution Example |
…lues (#864) * fix(hidden-input): #706 false values won't pass hiddenInput check * fix(hidden-input): #863 Past value that have been cleared don't haunt future values on hiddenInputs * fix(to-number): empty string check Empty string is no longer converted to zero. Number('') === 0; This was returning inconsistent values when input values were deleted. * fix(hidden-input): form setValue without phantom values
@scrimothy @scrimothy Thank you. Please try newest version. |
Hey @NepipenkoIgor Reproducible link: https://stackblitz.com/edit/test-ngx-mask-6j2szn?file=src%2Fapp%2Fapp.component.html&hideDevTools=1 Step1: Write: 111-1 This shows *** instead of **- |
@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 |
Hello,
I'm currently using ngx-mask to handle ssn input in the format of XXX-XX-0000 and use hiddenInput to hide the first 5 number on the UI. One of our requirement was to have the ability to display the ssn in full or secure as will. This was done by having [hiddenInput] being driven by a checkbox value. Everything is good except when the hiddenInput is switch when the user had only entered 4 or 6 digits.
So entering 1234 ( *** - * ) then switch hiddenInput off will display 124 instead of 123-4, enter 123456 ( *** - ** - * ) then switch will display 123-46 instead 123-45-6. Likewise if hiddenInput is off by default, entering 1234 (123-4) then switch hiddenInput on will display *** instead of *** - * . It look like if the user had only enter the ssn up to one digit after the - and then switch the issue will occur.
The text was updated successfully, but these errors were encountered: