gyurielf / svelte-tel-input

Svelte Tel Input
https://svelte-tel-input.vercel.app/
MIT License
97 stars 11 forks source link

Prevent cursor from jumping to end of input (Issue 212) #230

Open autumn-canfield opened 1 week ago

autumn-canfield commented 1 week ago

This is a fix I made for preventing the cursor from jumping to the end of the input as reported in #212.

I also changed the formatted numbers to use the AsYouType formatters because it was still quite jarring to have the spaces appear and disappear while editing the phone number.

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelte-tel-input ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 9:42pm
gyurielf commented 1 week ago

First of all, thank you!

Sorry for the delay, but somehow GH doesn't send notifications properly for me. (In v4, which is pretty close, it will use AsYouType as well and it will bring huge changes.)

But I'll test it today.