viclafouch / mui-tel-input

📌 A phone number input designed for MUI (Material ui) V6 built with libphonenumber-js
https://viclafouch.github.io/mui-tel-input
MIT License
171 stars 67 forks source link

Enhancement, When ForceCallingCode is set to true automatic country guessing is not happening unlike when we set ForceCallingCode to false #139

Closed sathishchaviti closed 4 months ago

sathishchaviti commented 6 months ago

I have been using MUI-TEL-INPUT where currently I opt to show only three countries CA, US, MX. By default I'm Setting defaultCountry as US. And when I Input a valid CA number the choosen flag is updating to CA and vice versa and I ForceCallingCode true.

Expected Behaviour: If user selects the country from dropdown as CA and inputs a US value the flag should automatically updates to US and if the user selects the country US from dropdown and input CA value the flag should automatically updates to CA.