github jackocnr/intl-tel-input v15.0.0

latest releases: v22.0.2, v22.0.1, v22.0.0...
5 years ago

Change behaviour of autoHideDialCode option

It still clears the input on blur/submit if it just contains a dial code, but now it no longer re-adds it on focus. This is due to a bug (#847): when submitting the form with an empty (but required) input, the browser displayed an error on the input and also focusing it, which caused the plugin to automatically add the dial code which then triggered the browser to remove the error again instantly, so it could actually never be seen. I have also just come to believe more generally that injecting a value on focus is unexpected and dangerous, and so should be avoided.

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

NewReleases is sending notifications on new releases.