mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
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:
committed by
GitHub
parent
062443bf8e
commit
8791364d47
11
types/intl-tel-input/index.d.ts
vendored
11
types/intl-tel-input/index.d.ts
vendored
@@ -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.
|
||||
|
||||
@@ -85,7 +85,7 @@ window.intlTelInput(input, {
|
||||
|
||||
window.intlTelInput(input, {
|
||||
allowDropdown: false,
|
||||
autoHideDialCode: false,
|
||||
autoInsertDialCode: false,
|
||||
autoPlaceholder: 'aggressive',
|
||||
dropdownContainer: document.body,
|
||||
excludeCountries: ['us', 'uk'],
|
||||
|
||||
Reference in New Issue
Block a user