Auto flag change behavior/issue #165
SujitSingh
started this conversation in
General
Replies: 1 comment
-
|
I have been able to handle cases such as But the case of this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am wondering if we have noticed the flag auto-change behavior where the new auto-selected flag shows a different country?
Eg - On the home page or the forked Codesandbox, after selecting
UScountry flag/code, type829as phone number. You will notice the flag got auto changed, but the country-code+1remained as it was.I have seen similar behavior while entering phone numbers such as
345***,441***,648***when+1country code was entered.The main reason to me looks like to be presence of other country codes starting with
+1, such as+1345,+1441,+1648, and few more are causing country detection logic to misbehave.I also checked the libphonenumber-js, which seems to be properly detecting the correct country code.
If above mentioned behavior is actually a bug and is not suppose to behave that way, I am thinking to raise an issue and PR for it.
Beta Was this translation helpful? Give feedback.
All reactions