npm intl-tel-input 20.0.0
v20.0.0

latest releases: 24.7.0, 24.6.1, 24.6.0...
8 months ago

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 in i18n option - see readme)
  • Remove defaultToFirstCountry option as that behaviour was causing problems and so is not recommended (you can always use initialCountry 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 pass false as an argument e.g. isValidNumber(false)
  • Removed legacy Promise checks, as they are now supported in all modern browsers
  • Remove autoInsertDialCode feature, preferring showSelectedDialCode
  • 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

Don't miss a new intl-tel-input release

NewReleases is sending notifications on new releases.