mukeshsoni/react-telephone-input

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:

  1. Go to https://github.com/mukeshsoni/react-telephone-input
  2. Type +44
  3. 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
Kyxey commented

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.