JsDaddy / ngx-mask

Angular Plugin to make masks on form fields and html elements.
https://jsdaddy.github.io/ngx-mask
MIT License
1.15k stars 298 forks source link

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

Closed CShelton11 closed 10 months ago

CShelton11 commented 11 months ago

🐞 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 commented 11 months ago

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

andriikamaldinov1 commented 10 months ago

@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