@xwadex/fesd 0.0.69 → 0.0.70

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.
@@ -2478,9 +2478,9 @@ class Dt extends HTMLElement {
2478
2478
  const i = t.classList.contains("filter"), n = () => {
2479
2479
  if (t.getAttribute("d4-portal") == "true") {
2480
2480
  if (i)
2481
- return t.s.dropdownEl.querySelector(".dropdown-scroller .filter-bar") ? e : t.s.dropdownEl.querySelector(".filter-bar").clientHeight + e;
2481
+ return t.s.dropdownEl.querySelector(".dropdown-scroller .filter-bar") ? e : t.s.dropdownEl.querySelector(".filter-bar") ? t.s.dropdownEl.querySelector(".filter-bar").clientHeight + e : e;
2482
2482
  } else if (i)
2483
- return t.querySelector(".dropdown-scroller .filter-bar") ? e : t.querySelector(".filter-bar").clientHeight + e;
2483
+ return t.querySelector(".dropdown-scroller .filter-bar") ? e : t.querySelector(".filter-bar") ? t.querySelector(".filter-bar").clientHeight + e : e;
2484
2484
  return e;
2485
2485
  };
2486
2486
  t.s.subDropdownTotalH = 0;
@@ -2490,8 +2490,8 @@ class Dt extends HTMLElement {
2490
2490
  c.style.cssText = `--height: ${d.offsetHeight + u}px`, t.s.subDropdownTotalH += parseInt(c.style.cssText.replace("--height:", "").trim()), l.classList.add("open");
2491
2491
  });
2492
2492
  const r = () => {
2493
- const l = n() + t.s.subDropdownTotalH;
2494
- return l > a ? a : l;
2493
+ const l = i ? t.getAttribute("d4-portal") == "true" ? t.s.dropdownEl.querySelector(".filter-bar") : t.querySelector(".filter-bar") : null, c = l ? l.clientHeight : 0, d = n() + t.s.subDropdownTotalH;
2494
+ return d > a + c ? a + c : d;
2495
2495
  };
2496
2496
  return t.getAttribute("d4-portal") !== "true" && V(), t.setAttribute("d4-status", "open"), t.setAttribute("d4-default-height", n()), t.getAttribute("d4-portal") == "true" ? (t.s.dropdownEl.style.setProperty("--maxHeight", `${r()}px`), t.s.dropdownEl.style.zIndex = "9999", this.#e(), t.s.dropdownEl.offsetHeight, t.s.dropdownEl.style.height = `${r()}px`, t.__events__._scrollUpdate = () => {
2497
2497
  const l = t.getBoundingClientRect();