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

How to prevent user from add a new decimal marker when it already exists? #1250

Open
herickwilke opened this issue Oct 3, 2023 · 0 comments

Comments

@herickwilke
Copy link

🐞 bug report

Description

Let's say I have the number 15.000,53 in my input (thousand separator as dot, comma as decimal), and I put a new comma between 1 and 5, the number gonna change completely. The input will read it as 1,5 and delete numbers. Please watch the following video:

🔬 Minimal Reproduction

https://stackblitz.com/edit/stackblitz-starters-gqxumq?file=src%2Fapp%2Fnumber-input%2Fnumber-input.component.html

Screen.Recording.2023-10-03.at.15.44.08.mov

🌍 Your Environment

Browser: Google Chrome
Ngx-mask version: 16.3.4
Angular version: 16.2.4

Thanks.

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