-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isValidNumber doesn't works properly for Brazilian numbers #1631
Comments
We use libphonenumber for formatting, validation and generating placeholder numbers - if your issue relates to one of these things, please check their test site first and if you see the problem there please file an issue with them instead. If it's working correctly in libphonenumber, the next step is to check that we're using the latest version of libphonenumber in the plugin - check the version history here. If we need to upgrade, it only takes 5 minutes to do this yourself and submit a Pull Request - instructions here: Updating to a new version of libphonenumber. |
A few extra notes:
|
It worked like a charm! Thank you so much :) |
I'm using the latest version of intl-tel-input (v23.0.9) but, when i try to validate a Brazilian phone number (+55 47 00000000) it returns false (not valid).
The placeholder seems to be correct:
![Screenshot 2024-05-23 at 2 28 33 PM](https://private-user-images.githubusercontent.com/20630951/333285015-e0ea1dbb-96b5-42a3-a063-2d27251caf6b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzNDgzODQsIm5iZiI6MTcyMzM0ODA4NCwicGF0aCI6Ii8yMDYzMDk1MS8zMzMyODUwMTUtZTBlYTFkYmItOTZiNS00MmEzLWEwNjMtMmQyNzI1MWNhZjZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODExVDAzNDgwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE0ZGE5MjgyM2FiNjY3MjRmYWI0OGU4ZTRlNzUzMzZlZjMwNDYzODlhNWFkYmZkNDMzNTQ3YzkxMzk4Y2U0YTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.0Ja_m0xzmMSpdHf5XmZS7jLGYUzpUgKnG_dOfhDK0Xw)
And it auto-format as a type.
Here's the full code:
The text was updated successfully, but these errors were encountered: