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

Cursor in wrong position when backspacing #2815

Open
eduardodallmannsysmap opened this issue Aug 12, 2024 · 0 comments
Open

Cursor in wrong position when backspacing #2815

eduardodallmannsysmap opened this issue Aug 12, 2024 · 0 comments

Comments

@eduardodallmannsysmap
Copy link

eduardodallmannsysmap commented Aug 12, 2024

I'm using this mask:
mask: ["099 999", "999 999"]

When typing, everything works correctly. When I get to the end, the zero disappears, everything is fine so far.

But if I press backspace, the last number is erased correctly, the zero at the beginning reappears correctly. But the problem is that the cursor goes one number to the left.

https://codesandbox.io/p/devbox/9gwy5w

inputmask

  • Browser: Chrome
  • Inputmask version 5.0.9 or 5.0.10-beta.0
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