intl-tel-input 19.2.8 → 19.2.11

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.
@@ -24614,7 +24614,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24614
24614
  var e = new Event(t, { bubbles: true, cancelable: true });
24615
24615
  this.telInput.dispatchEvent(e);
24616
24616
  } }, { key: "_showDropdown", value: function() {
24617
- this.options.fixDropdownWidth && (this.dropdownContent.style.width = "".concat(this.telInput.offsetWidth, "px")), this.dropdownContent.classList.remove("iti__hide"), this.selectedFlag.setAttribute("aria-expanded", "true"), this._setDropdownPosition(), this.options.countrySearch ? (this._highlightListItem(this.countryList.firstElementChild, false), this.searchInput.focus()) : this.activeItem && (this._highlightListItem(this.activeItem, false), this._scrollTo(this.activeItem, true)), this._bindDropdownListeners(), this.dropdownArrow.classList.add("iti__arrow--up"), this._trigger("open:countrydropdown");
24617
+ if (this.options.fixDropdownWidth && (this.dropdownContent.style.width = "".concat(this.telInput.offsetWidth, "px")), this.dropdownContent.classList.remove("iti__hide"), this.selectedFlag.setAttribute("aria-expanded", "true"), this._setDropdownPosition(), this.options.countrySearch) {
24618
+ var t = this.countryList.firstElementChild;
24619
+ t && this._highlightListItem(t, false), this.searchInput.focus();
24620
+ } else
24621
+ this.activeItem && (this._highlightListItem(this.activeItem, false), this._scrollTo(this.activeItem, true));
24622
+ this._bindDropdownListeners(), this.dropdownArrow.classList.add("iti__arrow--up"), this._trigger("open:countrydropdown");
24618
24623
  } }, { key: "_toggleClass", value: function(t, e, i) {
24619
24624
  i && !t.classList.contains(e) ? t.classList.add(e) : !i && t.classList.contains(e) && t.classList.remove(e);
24620
24625
  } }, { key: "_setDropdownPosition", value: function() {
@@ -24888,7 +24893,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24888
24893
  R(s);
24889
24894
  }
24890
24895
  return null;
24891
- }, L.defaults = G, L.version = "19.2.7", function(s, n) {
24896
+ }, L.defaults = G, L.version = "19.2.11", function(s, n) {
24892
24897
  var t = new Y(s, n);
24893
24898
  return t._init(), s.setAttribute("data-intl-tel-input-id", t.id), window.intlTelInputGlobals.instances[t.id] = t, t;
24894
24899
  };
@@ -24614,7 +24614,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24614
24614
  var e = new Event(t, { bubbles: true, cancelable: true });
24615
24615
  this.telInput.dispatchEvent(e);
24616
24616
  } }, { key: "_showDropdown", value: function() {
24617
- this.options.fixDropdownWidth && (this.dropdownContent.style.width = "".concat(this.telInput.offsetWidth, "px")), this.dropdownContent.classList.remove("iti__hide"), this.selectedFlag.setAttribute("aria-expanded", "true"), this._setDropdownPosition(), this.options.countrySearch ? (this._highlightListItem(this.countryList.firstElementChild, false), this.searchInput.focus()) : this.activeItem && (this._highlightListItem(this.activeItem, false), this._scrollTo(this.activeItem, true)), this._bindDropdownListeners(), this.dropdownArrow.classList.add("iti__arrow--up"), this._trigger("open:countrydropdown");
24617
+ if (this.options.fixDropdownWidth && (this.dropdownContent.style.width = "".concat(this.telInput.offsetWidth, "px")), this.dropdownContent.classList.remove("iti__hide"), this.selectedFlag.setAttribute("aria-expanded", "true"), this._setDropdownPosition(), this.options.countrySearch) {
24618
+ var t = this.countryList.firstElementChild;
24619
+ t && this._highlightListItem(t, false), this.searchInput.focus();
24620
+ } else
24621
+ this.activeItem && (this._highlightListItem(this.activeItem, false), this._scrollTo(this.activeItem, true));
24622
+ this._bindDropdownListeners(), this.dropdownArrow.classList.add("iti__arrow--up"), this._trigger("open:countrydropdown");
24618
24623
  } }, { key: "_toggleClass", value: function(t, e, i) {
24619
24624
  i && !t.classList.contains(e) ? t.classList.add(e) : !i && t.classList.contains(e) && t.classList.remove(e);
24620
24625
  } }, { key: "_setDropdownPosition", value: function() {
@@ -24888,7 +24893,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24888
24893
  R(s);
24889
24894
  }
24890
24895
  return null;
24891
- }, L.defaults = G, L.version = "19.2.7", function(s, n) {
24896
+ }, L.defaults = G, L.version = "19.2.11", function(s, n) {
24892
24897
  var t = new Y(s, n);
24893
24898
  return t._init(), s.setAttribute("data-intl-tel-input-id", t.id), window.intlTelInputGlobals.instances[t.id] = t, t;
24894
24899
  };