JsDaddy / ngx-mask

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

Not able to add a zero value when using separator mask #1314

Closed ojpbay closed 7 months ago

ojpbay commented 8 months ago

When using a mask of separator (any number of decimal places) you are unable to add a value of 0.

This can be see in the demo for separators at https://jsdaddy.github.io/ngx-mask/#1. When adding a value of zero the form control value stays empty. Change it to anything else and it works.

image

Add something other than zero and the form control value is updated: image

andriikamaldinov1 commented 7 months ago

@ojpbay Thanks for using Ngx-mask. It example all work as expected - https://stackblitz.com/edit/stackblitz-starters-bankkd?file=src%2Fmain.ts