react-phone-input-2 icon indicating copy to clipboard operation
react-phone-input-2 copied to clipboard

While trying to edit the number it shows weird behaviour.

Open aecs4 opened this issue 4 years ago • 2 comments

While trying to edit the number in version 2.13.9 it is showing weird behavior. For example, if I have typed 8567 and want to insert 23456 before 5, after typing 1 or 2 digits the cursor automatically gets moved to the end of the number. It makes editing very uncomfortable and hence it is not allowing to add digits in the middle.

aecs4 avatar Nov 28 '20 08:11 aecs4

I experience same issue with 2.13.9 version and it's also visible on a demo https://bl00mber.github.io/react-phone-input-2.html Problem is that it's possible to change only 2 numbers and then third one goes to the end of the phone instead of staying in the middle: https://streamable.com/a8ffrz

I checked only 2 browsers: Chrome and Firefox and it's reproducible in both.

P.S. jumpCursorToEnd flag doesn't change behavior and seems to be not working

shastakova-trulioo avatar Feb 22 '21 18:02 shastakova-trulioo

Partially resolved by #481

bl00mber avatar Feb 02 '22 18:02 bl00mber