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

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

Closed
ojpbay opened this issue Mar 13, 2024 · 1 comment
Closed

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

ojpbay opened this issue Mar 13, 2024 · 1 comment

Comments

@ojpbay
Copy link

ojpbay commented Mar 13, 2024

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 added a commit that referenced this issue Mar 25, 2024
andriikamaldinov1 added a commit that referenced this issue Mar 25, 2024
andriikamaldinov1 added a commit that referenced this issue Mar 25, 2024
andriikamaldinov1 added a commit that referenced this issue Mar 25, 2024
andriikamaldinov1 added a commit that referenced this issue Mar 25, 2024
#1328)

* feat(ref: #1295, #1292, #1314, #1310, #1304, #1308, #1299): fix issues

* feat(ref: #1295, #1292, #1314, #1310, #1304, #1308, #1299): remove unusable code

* feat(ref: #1295, #1292, #1314, #1310, #1304, #1308, #1299): remove unusable code

* feat(ref: #1295, #1292, #1314, #1310, #1304, #1308, #1299): remove unusable code

* feat(ref: #1295, #1292, #1314, #1310, #1304, #1308, #1299): remove unusable code
@andriikamaldinov1
Copy link
Collaborator

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

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

No branches or pull requests

2 participants