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

Unable to paste values in numeric mask when thousandSeparator is equal to '.' #1104

Open
lucasousi opened this issue Jan 11, 2025 · 0 comments

Comments

@lucasousi
Copy link

Describe the bug
When the mas is set as Number and thousandSeparator: '.', the input doesn't format pasted values correctly.

Input after past value 100.000,25:

image

To Reproduce
https://stackblitz.com/edit/react-imask-bug-on-pasting?file=src%2FApp.tsx

Expected behavior
Input must accept pasting well-formatted values

Environment:

  • OS: macOs
  • Browser: Chrome
  • Version: 131.0.6778.265
  • IMask version: ^7.6.1
  • Framework/plugin version if used: react@^18.3.1

Additional context

  1. If the user pastes the value 100 000,25 (with a space as thousand separator), it works.
  2. It may be related to: Unable to paste values without mask from clipboard #1063 and JS thread overloads when pasting numerous times with RegEx mask #882
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant