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
When you select the Philippines and input a number, the status of isValid is turning into TRUE even if it's not correct. Sometimes isValid became TRUE if you entered 6 and 8 digits.
Input 6 random numbers and isValid will become TRUE. Also when you input 8 random numbers, isValid will become TRUE.
Expected behavior
When you enter a number which is not the same format as the placeholder/hint above, it will not return the param, isValid, TRUE.
This is the correct format of the phone number:
Screenshots
I entered 6 random numbers:
I entered 8 random numbers:
The text was updated successfully, but these errors were encountered:
Hi, I search on this for a while, and find the issuse is actually caused by the dependency lib: "libphonenumber-js"
It use the "parsePhoneNumberFromString" mehtod to get the parsing result and it's isValid() method is incorrect. https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/19
Describe the bug
When you select the Philippines and input a number, the status of isValid is turning into TRUE even if it's not correct. Sometimes isValid became TRUE if you entered 6 and 8 digits.
Steps to reproduce
Expected behavior
When you enter a number which is not the same format as the placeholder/hint above, it will not return the param, isValid, TRUE.
This is the correct format of the phone number:
Screenshots
I entered 6 random numbers:
I entered 8 random numbers:
The text was updated successfully, but these errors were encountered: