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

Jumping caret #780

Closed
clickjamper opened this issue Jul 27, 2023 · 4 comments
Closed

Jumping caret #780

clickjamper opened this issue Jul 27, 2023 · 4 comments
Labels
bug Low Priority An issue/enhancement which is valid but has a low impact.

Comments

@clickjamper
Copy link

I tryied to find any information about situation^
When you use format and double click on empty input and next click on his center, the caret set on center input.

Expected that caret will set on input start or last character entered.

It can see in doc demo, example: https://s-yadav.github.io/react-number-format/docs/pattern_format/

Could this be the correct behaviour?

@clickjamper
Copy link
Author

Can it be because format is a string, which set to input, and we can set the caret to any on input like base behavior?

@s-yadav
Copy link
Owner

s-yadav commented Aug 5, 2023

Yes, the expectation is that the caret moves after the last entered character. on normal click its handle, but the case you mentioned click after selection is not handled.
Will fix this but keeping it as low priority as soon as you type or click again, it will go to the right caret position.

@s-yadav s-yadav added bug Low Priority An issue/enhancement which is valid but has a low impact. labels Aug 5, 2023
@arturjackowiak
Copy link

Hi @s-yadav , any updates?

@s-yadav
Copy link
Owner

s-yadav commented Mar 17, 2024

Hey @arturjackowiak, pushed fix for this on 5.3.4

@s-yadav s-yadav closed this as completed Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Low Priority An issue/enhancement which is valid but has a low impact.
Projects
None yet
Development

No branches or pull requests

3 participants