Open rupam71 opened 4 months ago
I have the same problem. I have noticed that when I use disableFormatting
props the MuiTelInputInfo.countryCallingCode
does not change - always stays at the current country code, only change of number triggers change of calling code.
Hello !
I need a repro with a codesandbox.
Looks like it's an issue from libphonenumber-js
, the lib that handles country for the user input :/
At first i was in Bangladesh. My Bangladesh info was correct. And than I select Baharain. Now Baharain info is not correct.
{ "value": "+9731687", "info": { "countryCallingCode": "880", "countryCode": "BH", "nationalNumber": "1687", "numberType": null, "numberValue": "+8801687", "reason": "country" } }
Baharain country code is ok. but Baharain county calling code is not ok.