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

Mask not working correctly with decimals #1273

Closed kgoedert closed 10 months ago

kgoedert commented 10 months ago

I am using angular 16.x and ng-mask 16.4.1.

I need to create a mask that has up to 5 digits, a decimal point, and up to 4 digits. I created this mask

'09999.0999'

But when I type 1.0 in my field, it becomes 10.0 in ng-model. What is wrong with my mask?

andriikamaldinov1 commented 10 months ago

@kgoedert Thanks for using Ngx-Mask. It example, all work as expected - https://stackblitz.com/edit/angular-njmt54?file=src%2Fmain.ts,src%2Fkarma.conf.js