dap-design-system 0.58.1 → 0.58.3

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.
@@ -8700,7 +8700,7 @@ let ki = class t extends Pa {
8700
8700
  this.emit("dds-change", { value: i }), o === "true" && (this._lastClickedItem = e.target, this._handleFocusOut());
8701
8701
  }
8702
8702
  handleClick(e) {
8703
- e.stopPropagation(), this.opened ? this.hideDropDown() : this.showDropDown();
8703
+ e.preventDefault(), e.stopPropagation(), this.opened ? this.hideDropDown() : this.showDropDown();
8704
8704
  }
8705
8705
  handleDocumentMouseDown(e) {
8706
8706
  const i = e.composedPath();
@@ -17080,6 +17080,8 @@ let qt = class extends wt(T) {
17080
17080
  t.preventDefault(), this.handleKeyCodes(t.key, t.code);
17081
17081
  }
17082
17082
  scrollToActiveOption() {
17083
+ if (!this.currentOption)
17084
+ return;
17083
17085
  const t = this.getAllRenderedOptions().find(
17084
17086
  (e) => e.value === this.currentOption.value
17085
17087
  );
@@ -17189,7 +17191,7 @@ let qt = class extends wt(T) {
17189
17191
  (this.isAutoComplete || this.searchMode === "none") && (this.handleKeyCodes(t), this.setCurrentOption(this.availableOptions[this.selectedIndex], !1), this.setSelectedOption(this.availableOptions[this.selectedIndex])), this.searchMode === "typehead" && this.buildQueryString(t);
17190
17192
  }
17191
17193
  captureFocus(t) {
17192
- this.focused = !0, this.focus(), t ? this.handleKeyFocus(t) : this.handleInitialFocus();
17194
+ this.focused = !0, this.focus(), t ? this.handleKeyFocus(t) : this.handleInitialFocus(), typeof requestAnimationFrame == "function" && requestAnimationFrame(() => this.scrollToActiveOption());
17193
17195
  }
17194
17196
  removeFocus() {
17195
17197
  this.focused = !1, this.clearItemFocusStates();
@@ -21833,7 +21835,7 @@ export {
21833
21835
  Mi as A,
21834
21836
  Ro as B,
21835
21837
  Lr as C,
21836
- Wt as D,
21838
+ eo as D,
21837
21839
  Ar as E,
21838
21840
  K as F,
21839
21841
  X as G,
@@ -21857,7 +21859,7 @@ export {
21857
21859
  Na as Y,
21858
21860
  Vo as Z,
21859
21861
  re as _,
21860
- je as a,
21862
+ Wt as a,
21861
21863
  Pr as a0,
21862
21864
  St as a1,
21863
21865
  Bo as a2,
@@ -21904,23 +21906,23 @@ export {
21904
21906
  we as ay,
21905
21907
  Mr as az,
21906
21908
  Gs as b,
21907
- io as c,
21909
+ je as c,
21908
21910
  yi as d,
21909
21911
  Oe as e,
21910
- eo as f,
21911
- Po as g,
21912
+ Po as f,
21913
+ io as g,
21912
21914
  ri as h,
21913
21915
  Ot as i,
21914
21916
  Yt as j,
21915
21917
  Lt as k,
21916
21918
  Zt as l,
21917
- Oa as m,
21918
- zr as n,
21919
- Ei as o,
21920
- Cr as p,
21921
- To as q,
21922
- ye as r,
21923
- Gt as s,
21919
+ Gt as m,
21920
+ Oa as n,
21921
+ zr as o,
21922
+ Ei as p,
21923
+ Cr as q,
21924
+ To as r,
21925
+ ye as s,
21924
21926
  xe as t,
21925
21927
  Pi as u,
21926
21928
  Le as v,
@@ -21929,4 +21931,4 @@ export {
21929
21931
  ee as y,
21930
21932
  ki as z
21931
21933
  };
21932
- //# sourceMappingURL=components-DIc6GiB8.js.map
21934
+ //# sourceMappingURL=components-C1PeiTAk.js.map