Closed ahmedelgabri closed 4 years ago
Released react-phone-number-input@2.5.0
with the fix: the phone number is now being cleared in such cases (unless the country being switched to has the same "country calling code" as the currently input international phone number; for example, when switching US
-> Canada
).
Updated the demo.
Here is a reproduction to this issue https://codesandbox.io/s/tender-haze-qzjhw
Steps to reproduce the issue:
Now do the same but without step 1 & you will see the difference in the value that gets outputted.