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 jumping when editing input on Safari #45

Open
LemaireJean-Baptiste opened this issue Feb 12, 2021 · 0 comments
Open

Cursor jumping when editing input on Safari #45

LemaireJean-Baptiste opened this issue Feb 12, 2021 · 0 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@LemaireJean-Baptiste
Copy link

Hello,
I found a small bug on Safari when editing the input value.
It may have something to do with the .setRangeText method, maybe safari is not fully supporting this method. In any way this bug doesn't happen on Chrome.

If you type a number (ex: 1245) and then place your cursor after the 2 to add a digit (3), it will add the digit, but will make the cursor jump at the end of the number (after the 5), which is not the expected behaviour.
Same if you delete a digit in the middle of the number. Same if you paste a digit in the middle of the number. It will always teleport the cursor at the end of the number.

(I am on safari 14.0.2, mac os BigSur)

Thanks for your module it is very useful,
Best regards,
JB

@changhuixu changhuixu added help wanted Extra attention is needed question Further information is requested labels Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants