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
Here is the list of affected NANP countries that I have found:
US Virgin Islands
British Virgin Islands
Northern Mariana Islands
Guam
American Samoa
Barbados
Cayman Islands
Bermuda
Grenada
St Lucia
Dominica
Saint Vincent and the Grenadines
Trinidad and Tobago
Start typing phone numbers for any of the countries listed below that I've found has the issue. Virgin Islands, for example, has area code 340
Expected behaviour
Phone numbers should be taken as typed. For example, all other NANP countries all work as expected.
Actual behaviour
After typing area code + prefix (ex. 3405555), the area code is duplicated in the getNumber() response (34034055555). Further attempts to backspace the number to correct it will result in the area code being duplicated again (34034034055) as if in a loop.
Initialisation options
No initialization options (utils are imported as a sideaffect for sake of the demo)
The text was updated successfully, but these errors were encountered:
As per the readme, getNumber should only be used with a valid number. Are you checking isValidNumber before you use it? That might be the problem. If I check the demo site and select US Virgin Islands, and type a valid number, like 3405555555 then getNumber is working fine. Let me know if I've misunderstood something.
Here is the list of affected NANP countries that I have found:
US Virgin Islands
British Virgin Islands
Northern Mariana Islands
Guam
American Samoa
Barbados
Cayman Islands
Bermuda
Grenada
St Lucia
Dominica
Saint Vincent and the Grenadines
Trinidad and Tobago
Steps to reproduce
Expected behaviour
Phone numbers should be taken as typed. For example, all other NANP countries all work as expected.
Actual behaviour
After typing area code + prefix (ex. 3405555), the area code is duplicated in the getNumber() response (34034055555). Further attempts to backspace the number to correct it will result in the area code being duplicated again (34034034055) as if in a loop.
Initialisation options
No initialization options (utils are imported as a sideaffect for sake of the demo)
The text was updated successfully, but these errors were encountered: