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

Pasting a decimalCharacter bypasses the alwaysAllowDecimalCharacter test #762

Open
AlexandreBonneau opened this issue Mar 9, 2023 · 0 comments
Labels

Comments

@AlexandreBonneau
Copy link
Member

AlexandreBonneau commented Mar 9, 2023

Steps to reproduce the problem

  1. Use autoNumeric version 4.6.2
  2. Use the a test field with the formatted value 12.345.678,00 € (i.e. Issue 326), and the alwaysAllowDecimalCharacter set to false
  3. Copy ,, then paste between the 4 and 5 values
  4. It should prevent entering another comma

Instead of keeping the value 12.345.678,00 €, it allows it and correctly reformat the truncated value 1.234,57 €

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

1 participant