You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add the number 1 to the input containing +358, so that the input has the value +3581, the Finnish flag changes to the country of Åland Islands, which does not have a flag image.
Expected behavior
The props are not required in Typescript and Finland flag not changed to Åland Islands.
Note: The version 4.73.0 works ok, but causes the following error in react 18.2.0:
Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of ReactTelephoneInput which is inside StrictMode. Instead, add a ref directly to the element you want to reference.
The text was updated successfully, but these errors were encountered:
Well, it seems all versions are not compatible with the react strict mode.
And the flag/country changing issues started with version 4.74.4.
This could be because new countries with duplicate area codes were added (for example Åland Islands which has the same area code as Finland +358).
Can be reproduced with the second input on https://unstack.in/react-telephone-input/
Version of react-telephone-input
5.0.0
Browser
The latest chrome, but shouldn't matter.
Expected behavior
The props are not required in Typescript and Finland flag not changed to Åland Islands.
Note: The version 4.73.0 works ok, but causes the following error in react 18.2.0:
The text was updated successfully, but these errors were encountered: