UK phone number does not show flag.
Opened this issue · 2 comments
Describe the bug
UK numbers do not appear when entering a phone number tries to show 'Guernsey' country flag instead, which does not exist in the flags, also should not overide the UK flag.
To Reproduce
Steps to reproduce the behaviour:
- Go to https://github.com/mukeshsoni/react-telephone-input
- Type +44
- Anything else you enter after makes the flag disappear, view source and the class is 'flag gg'
Expected behaviour
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Mac
- Browser Chome
It somehow mistakes UK
with Guernsey
as they both have same country prefix. When you change the country by selecting the flag it gets fixed. Weird behavior.
I am experiencing the same issue. Setting a initial value with +44xx... it will default to Guernsey. When typing +44 will show it as 'gb' then adding another number +44x will then switch it to Guernsey.