svelte-tel-input
svelte-tel-input copied to clipboard
Cursor jumps to the end of the input when editing the number
Steps to reproduce:
- Have a number in the field, either pre-filled or manually entered
- Place the cursor near the digit you want to delete, and delete it
- Place the cursor where you want to insert a new digit, and insert it
Expected result:
- On deletion, the cursor should remain to the right of the digit before the one that was deleted
- On insertion, the cursor should be placed immediately to the right of the inserted digit
Actual result:
- Under every scenario, the cursor jumps to the end
https://github.com/gyurielf/svelte-tel-input/assets/265039/7b897464-1d89-482b-a538-589f95194074
Hey!
Thanks for the detailed issue.
A big update is coming soon with lots of improvement. So I'll fix in that. (or you can drop a PR if you can :) )
@gyurielf any news about this update?
This library looks great and I would like to use it, but this bug is stopping me from using it.
@gyurielf any news about this update?
This library looks great and I would like to use it, but this bug is stopping me from using it.
Well, I'm working on 4.0, which fixes this. For now, I don't have enough time to fix this in 3.x.
BR, G.