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

normalizeZeros works incorrectly #931

Closed
imvan32 opened this issue Aug 15, 2023 · 0 comments
Closed

normalizeZeros works incorrectly #931

imvan32 opened this issue Aug 15, 2023 · 0 comments

Comments

@imvan32
Copy link

imvan32 commented Aug 15, 2023

Hello

Describe the bug
We have input-mask (with value 100.000 and scale 3) and two callbacks (onFocus, onBlur) to control normalizeZeros . it should work like this:

  • normalizeZeros equals false by default
  • onFocus. I set normalizeZeros to true (nothing happens. it doesn't work)
  • onBlur. I set normalizeZeros to false

I think problem is here .

To Reproduce
I've created the sandbox to test it https://codesandbox.io/s/wizardly-kirch-dwhk72

Expected behavior
I expect that prop normalizeZeros works correctly and remove zeros when I set this flag to true

Environment:

  • OS: Windows 10
  • Browser chrome
  • Version 109.0.5414.120
  • IMask version 7.1.3
  • Framework/plugin version if used React
uNmAnNeR added a commit that referenced this issue Dec 15, 2023
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