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

Allow the ability to enter decimal point when masking as a Currency field using separator.2 #1270

Closed
tnfoundry opened this issue Nov 15, 2023 · 2 comments
Labels

Comments

@tnfoundry
Copy link

🚀 feature request

Description

End users would like the ability to key in currency values without having to type the leading zero. For example, if keying in 0.25, the user would like to type .25 rather than 0.25.

Describe the solution you'd like

If user keys in 0.25 into input, the user would like to type .25 rather than 0.25

Describe alternatives you've considered

Have not found one, but would love to be pointed in the right direction as it seems like this would be a very common request.

@andriikamaldinov1
Copy link
Collaborator

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

@tnfoundry
Copy link
Author

Woohoo! Awesome Andrii. This is greatly appreciated!!

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