alexplumb / material-ui-phone-number

Fork of react-phone-input-2 for the Material-UI library
MIT License
121 stars 180 forks source link

Changing the input changes the flag as well. #152

Open ManthanCedric opened 8 months ago

ManthanCedric commented 8 months ago

When I type a number with defaultCountry={'ca'} (Country code: +1), the flag changes to the USA (Country code: +1).

Before typing image

After typing number: image

There might be a mechanism to auto-detect the country code based on the number. How can I prevent this from happening if I have already selected the country?

Note: When I select Canada from the country code selection, it locks the country code, and it displays the Canadian country code while typing.

image