Skip to content
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

separator.2 not allowing decimals to be entered first (Version 15) #1259

Closed
CShelton11 opened this issue Oct 24, 2023 · 2 comments
Closed

separator.2 not allowing decimals to be entered first (Version 15) #1259

CShelton11 opened this issue Oct 24, 2023 · 2 comments
Labels

Comments

@CShelton11
Copy link

CShelton11 commented Oct 24, 2023

🐞 bug report

Description

When using mask mask="separator.2" with version 15 it will not allow me to type in a number starting with a decimal point.
I can enter 0.11 but I can not enter .11. When typing .11 it emits a null value instead of a zero when I enter the decimal point.
This did work back in version 9.

@CShelton11
Copy link
Author

In the interim I have rolled back to version 12.0.0 which still functions as expected...

@andriikamaldinov1
Copy link
Collaborator

@CShelton11 Thanks for using Ngx-mask. We have added this behaviuor. Use version 15.2.3
03 => 0.3
.3 => 0.3
It example - https://stackblitz.com/edit/angular-pj14ds?file=src%2Fmain.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants