BREAKING CHANGES
- Limit the number of files installed with intl-tel-input (as a dependency) - more details here
- Update the ARIA tags to work with
countrySearch
(there are 4 new translation keys ini18n
option - see readme) - Remove
defaultToFirstCountry
option as that behaviour was causing problems and so is not recommended (you can always useinitialCountry
to set the initial country if you wish to) - By default, calling
isValidNumber
will now default to mobile-only mode (it will only return true for valid mobile numbers), which means it will be much more accurate - if you don't want this, you can passfalse
as an argument e.g.isValidNumber(false)
- Removed legacy
Promise
checks, as they are now supported in all modern browsers - Remove
autoInsertDialCode
feature, preferringshowSelectedDialCode
- Simplified
hiddenInput
option so it must return an object - see readme - Validation methods now return
false
if the number contains an alphabetic character
NON BREAKING CHANGES