From 8791364d47d4efb8177dce43f65aca3043e4f9c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20B=C5=82a=C5=BCejewicz=20=28Peter=20Blazejewicz=29?= Date: Tue, 6 Jun 2023 02:47:09 +0200 Subject: [PATCH] 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! --- types/intl-tel-input/index.d.ts | 11 +++++------ types/intl-tel-input/test/intl-tel-input-global.ts | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/types/intl-tel-input/index.d.ts b/types/intl-tel-input/index.d.ts index d99c47b0be..7c04a50953 100644 --- a/types/intl-tel-input/index.d.ts +++ b/types/intl-tel-input/index.d.ts @@ -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 // 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. diff --git a/types/intl-tel-input/test/intl-tel-input-global.ts b/types/intl-tel-input/test/intl-tel-input-global.ts index f54a9ce62e..ce291dbc58 100644 --- a/types/intl-tel-input/test/intl-tel-input-global.ts +++ b/types/intl-tel-input/test/intl-tel-input-global.ts @@ -85,7 +85,7 @@ window.intlTelInput(input, { window.intlTelInput(input, { allowDropdown: false, - autoHideDialCode: false, + autoInsertDialCode: false, autoPlaceholder: 'aggressive', dropdownContainer: document.body, excludeCountries: ['us', 'uk'],