@kupola/kupola 1.6.0 → 1.6.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.
@@ -3003,7 +3003,7 @@ class Er {
3003
3003
  }
3004
3004
  _bindMenuItems() {
3005
3005
  this.menu.querySelectorAll(".ds-dropdown__item").forEach((t) => {
3006
- t.addEventListener("click", this._itemClickHandler), t._dropdownItemClickHandler = this._itemClickHandler;
3006
+ t.addEventListener("click", (e) => this._itemClickHandler(e)), t._dropdownItemClickHandler = (e) => this._itemClickHandler(e);
3007
3007
  });
3008
3008
  }
3009
3009
  _getNavigableItems() {
@@ -3179,7 +3179,7 @@ class wr {
3179
3179
  e._selectOptionClickHandler && e.removeEventListener("click", e._selectOptionClickHandler), e.remove();
3180
3180
  }), t.forEach((e) => {
3181
3181
  const s = document.createElement("div");
3182
- s.className = "ds-select__option", s.setAttribute("data-value", e.value), s.textContent = e.text || e.label, e.disabled && s.classList.add("is-disabled"), this.selectedValues.has(e.value) && s.classList.add("is-selected"), s.addEventListener("click", this._optionClickHandler), s._selectOptionClickHandler = this._optionClickHandler, this.optionsEl.appendChild(s);
3182
+ s.className = "ds-select__option", s.setAttribute("data-value", e.value), s.textContent = e.text || e.label, e.disabled && s.classList.add("is-disabled"), this.selectedValues.has(e.value) && s.classList.add("is-selected"), s.addEventListener("click", (n) => this._optionClickHandler(n)), s._selectOptionClickHandler = (n) => this._optionClickHandler(n), this.optionsEl.appendChild(s);
3183
3183
  }), this.allOptions = t.map((e) => ({
3184
3184
  el: this.optionsEl.querySelector(`[data-value="${e.value}"]`),
3185
3185
  value: e.value,
@@ -3256,7 +3256,7 @@ class wr {
3256
3256
  }
3257
3257
  _bindOptionClicks() {
3258
3258
  this.optionsEl.querySelectorAll(".ds-select__option, .ds-select__item").forEach((t) => {
3259
- t.addEventListener("click", this._optionClickHandler), t._selectOptionClickHandler = this._optionClickHandler;
3259
+ t.addEventListener("click", (e) => this._optionClickHandler(e)), t._selectOptionClickHandler = (e) => this._optionClickHandler(e);
3260
3260
  });
3261
3261
  }
3262
3262
  _getVisibleOptions() {