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

IMask inputs 0 when last digit is deleted #798

Closed
igorMondu opened this issue Dec 9, 2022 · 5 comments
Closed

IMask inputs 0 when last digit is deleted #798

igorMondu opened this issue Dec 9, 2022 · 5 comments

Comments

@igorMondu
Copy link

Describe the bug

When using a Number mask, after entering some number and after deleting the last digit, 0 will appear in the input and the cursor will move in front of it. This does not happen with 6.2.2. It started to happen since 6.3.

To Reproduce
https://codesandbox.io/s/chakra-ui-react-imask-react-hook-form-forked-0j7mmt

Expected behavior
It should not put 0 in the input when the last digit is deleted in the input, the input should be empty.

Environment:

  • OS: Mac Os
  • Browser Edge
  • Version 108.0.1462.41
  • IMask version: 6.4.3
  • ReactJS
@GhostyJade
Copy link

GhostyJade commented Dec 30, 2022

I've tested your codesandbox but on Chrome on Windows 11 it works like expected...

Edit:
P.S.: I didn't look at your code, I was only looking for a solution to a similar problem I have with this library since v6.4.0

@ookil
Copy link

ookil commented Feb 12, 2023

Can this be released?

@GhostyJade
Copy link

Can you please release this fix? Thanks.

@enginewisesolutions
Copy link

Can this be released? If not the issue isn't closed on our end @uNmAnNeR

@AlekseyKrap
Copy link

Can this be released? @uNmAnNeR

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

5 participants