-
Notifications
You must be signed in to change notification settings - Fork 167
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
pasting number doesn't select correct country #320
Comments
@samthomson Can you open a PR for adding a prop for disabling auto parsing of country code? |
Sure, but in that case I'll look to fix handling the initial pasted value (unless you know that to be a dead end) since that where the bug is. Can you confirm following those instructions work for you (ie clone in to new directory, then Thanks. |
Have pushed a fix for the build. You can pull the latest master. |
@samthomson I am changing the testing library as well as fixing a number of other bugs. You can checkout the PR here - https://github.com/mukeshsoni/react-telephone-input/pulls You can use the |
@samthomson I could not reproduce it in 4.75.5. Might have been fixed with other bug fixes i made. |
Oh. Didn't know the demo was broken. Let me take a look. |
@samthomson Have fixed the demo server thing. You should see the demos now. |
Can confirm the issue was in my code base. Sorry for wasting your time. A related component was changing the state of your phone input 😓 |
No problem. Glad you found the issue. |
Expectation: Danish flag is selected, with the number component 22594586
Reality: US flag is shown, and number 122594586
Note: This only happens the first time, second time round it works as expected. Reloading the page brings it back to the initial problematic state.
Seems related to but different from this issue as #201 (not just Danish numbers though, I can reproduce on all numbers).
If this can't be fixed, perhaps a prop to disable autoparsing of country code would help.
Thanks.
The text was updated successfully, but these errors were encountered: