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

Extra character added if you start typing from start of the input while input is fully filled #712

Closed
3 of 6 tasks
PrimulaX opened this issue Dec 16, 2022 · 3 comments · Fixed by #718
Closed
3 of 6 tasks
Labels

Comments

@PrimulaX
Copy link

Describe the issue and the actual behavior

If formatted input is fully filled and you jump to the start of the string and type something you will get the extra character in your value

Describe the expected behavior

value length shouldn’t change

Provide a CodeSandbox link illustrating the issue

https://codesandbox.io/s/format-demo-forked-urih6q

Provide steps to reproduce this issue

  1. Enter every character for the pattern
  2. Add any number at the start of the value in the input
  3. Your pattern will be exceeded with one character

Please check the browsers where the issue is seen

  • Chrome
  • Chrome (Android)
  • Safari (OSX)
  • Safari (iOS)
  • Firefox
  • Firefox (Android)
@s-yadav s-yadav added the bug label Jan 9, 2023
@s-yadav
Copy link
Owner

s-yadav commented Jan 9, 2023

Seems like a bug. Will fix this. Thanks for reporting.

@PrimulaX
Copy link
Author

PrimulaX commented Jan 9, 2023

@s-yadav Thanks

s-yadav added a commit that referenced this issue Jan 10, 2023
@s-yadav s-yadav mentioned this issue Jan 10, 2023
s-yadav added a commit that referenced this issue Jan 10, 2023
@s-yadav
Copy link
Owner

s-yadav commented Jan 10, 2023

Fix is available on 5.1.3

@s-yadav s-yadav mentioned this issue Jul 22, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants