Comments (3)
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.
from intl-tel-input.
I just want package to check phone number length for a specific country for validity and let all phone numbers of that length be valid.How can i manage that? Which method should i change?
from intl-tel-input.
If you just want to check number length, you should use the isValidNumber
method. If you use the latest version of the plugin (and utils.js), then this will return true for 0561 numbers e.g. 05612345678. When I check that number on the demo site, it validates as true.
from intl-tel-input.
Related Issues (20)
- utilsScript fails to load the utils from CDN in Next.js app HOT 13
- This input doesn't work on two elements HOT 3
- Getting error while using utilsScript HOT 6
- React component - allow access to intlTelInput instance HOT 14
- [Webpack] Compilation warning when initializing `intlTelInput` with `utilsScript` HOT 3
- Ukrainian mobile code 98 conflicts with Iran code HOT 2
- Selecting any country with Country code +1 and adding number, it resets the country to US. HOT 1
- Brazilian numer is formating national code without parenthesis HOT 1
- In Version 23.0.7 the intlTelInput.getCountryData() static function returns empty string value for name property. It was working fine till v20.3.0 HOT 3
- UK phone numbers wrong validation rules HOT 1
- Migrate tests to Jest
- isValidNumber doesn't works properly for Brazilian numbers HOT 3
- search field if one country? HOT 11
- Make input event on setNumber optional HOT 5
- CountryOrder is not honoured after search terms removed. HOT 1
- countryOrder not reinstated after a search HOT 3
- Default global icon for invalid dial code HOT 8
- setNumber cant be edited on a event listener
- Formatting does not return country to default HOT 3
- `separateDialCode=true` mode unexpected let user edit country code by typing in mobile HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intl-tel-input.