svelte-tel-input icon indicating copy to clipboard operation
svelte-tel-input copied to clipboard

Cursor jumps to the end of the input when editing the number

Open phobetron opened this issue 1 year ago • 3 comments

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

phobetron avatar Nov 14 '23 09:11 phobetron

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 avatar Nov 14 '23 18:11 gyurielf

@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.

reinoute avatar Mar 22 '24 14:03 reinoute

@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.

gyurielf avatar Mar 27 '24 05:03 gyurielf