update(intl-tel-input): update to v18.1 (#65067)

Minor update (options changed):
https://github.com/jackocnr/intl-tel-input/compare/v17.0.21...v18.1.0

Thanks!
This commit is contained in:
Piotr Błażejewicz (Peter Blazejewicz)
2023-06-06 02:47:09 +02:00
committed by GitHub
parent 062443bf8e
commit 8791364d47
2 changed files with 6 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
// Type definitions for intl-tel-input 17.0
// Type definitions for intl-tel-input 18.1
// Project: https://github.com/jackocnr/intl-tel-input
// Definitions by: Fidan Hakaj <https://github.com/fdnhkj>
// Leonard Thieu <https://github.com/leonard-thieu>
@@ -142,12 +142,11 @@ declare namespace intlTelInput {
allowDropdown?: boolean | undefined;
/**
* If there is just a dial code in the input: remove it on blur or submit,
* and re-add it on focus. This is to prevent just a dial code getting
* submitted with the form. Requires nationalMode to be set to false.
* Default = true
* auto insert dial code (A) on init, (B) on user selecting a country, (C) on calling setCountry
* also listen for blur/submit and auto remove dial code if that's all there is
* @default false
*/
autoHideDialCode?: boolean | undefined;
autoInsertDialCode?: boolean | undefined;
/**
* Set the input's placeholder to an example number for the selected country, and update it if the country changes.

View File

@@ -85,7 +85,7 @@ window.intlTelInput(input, {
window.intlTelInput(input, {
allowDropdown: false,
autoHideDialCode: false,
autoInsertDialCode: false,
autoPlaceholder: 'aggressive',
dropdownContainer: document.body,
excludeCountries: ['us', 'uk'],