intl-tel-input 29.5.0 → 29.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3227,16 +3227,15 @@ var UI = class {
3227
3227
  }
3228
3228
  if (this.#options.countrySelectorMode === COUNTRY_SELECTOR_MODE.FULLSCREEN && this.#detachedCountrySelectorEl && window.visualViewport) {
3229
3229
  this.#adjustFullscreenPopupToViewport();
3230
- window.visualViewport.addEventListener(
3231
- "resize",
3232
- () => {
3233
- this.#adjustFullscreenPopupToViewport();
3234
- if (this.#highlightedListItemEl) {
3235
- this.#scrollCountryListToItem(this.#highlightedListItemEl);
3236
- }
3237
- },
3238
- { signal: this.#countrySelectorAbortController.signal }
3239
- );
3230
+ const onViewportResize = () => {
3231
+ this.#adjustFullscreenPopupToViewport();
3232
+ if (this.#highlightedListItemEl) {
3233
+ this.#scrollCountryListToItem(this.#highlightedListItemEl);
3234
+ }
3235
+ };
3236
+ const { signal } = this.#countrySelectorAbortController;
3237
+ window.visualViewport.addEventListener("resize", onViewportResize, { signal });
3238
+ window.addEventListener("resize", onViewportResize, { signal });
3240
3239
  }
3241
3240
  this.#arrowEl.classList.add(CLASSES.ARROW_UP);
3242
3241
  this.#bindCountrySelectorOpenListeners(onSelect, onClose);
@@ -5014,7 +5013,7 @@ var intlTelInput = Object.assign(
5014
5013
  attachUtils,
5015
5014
  startedLoadingUtils: false,
5016
5015
  startedLoadingAutoCountry: false,
5017
- version: "29.5.0",
5016
+ version: "29.5.2",
5018
5017
  NUMBER_FORMAT,
5019
5018
  NUMBER_TYPE,
5020
5019
  VALIDATION_ERROR,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intl-tel-input",
3
- "version": "29.5.0",
3
+ "version": "29.5.2",
4
4
  "description": "A JavaScript library for entering, formatting, and validating international telephone numbers",
5
5
  "type": "module",
6
6
  "license": "MIT",