@eintrek/erp-shell 0.1.68 → 0.1.69

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.
@@ -1903,7 +1903,11 @@ function isPresent(el) {
1903
1903
  // a row of tabs that scrolls sideways, as long as the row is on screen.
1904
1904
  if ((r.right <= 0 || r.left >= window.innerWidth) && !inSidewaysScroller(el))
1905
1905
  return false;
1906
- if (el.getAttribute("data-state") === "closed")
1906
+ // Closed Radix content (a shut dialog, popover or collapsible body) is
1907
+ // absent. Its trigger also says data-state="closed" while shut, but it is
1908
+ // on screen and is what a step points at (a sidebar group header, a
1909
+ // dialog's open button), so a trigger (aria-expanded) stays present.
1910
+ if (el.getAttribute("data-state") === "closed" && !el.hasAttribute("aria-expanded"))
1907
1911
  return false;
1908
1912
  const style = getComputedStyle(el);
1909
1913
  if (style.visibility === "hidden" || style.display === "none")
@@ -3871,4 +3875,4 @@ exports.reportApiCall = reportApiCall;
3871
3875
  exports.reportApiEvent = reportApiEvent;
3872
3876
  exports.storeGuides = storeGuides;
3873
3877
  exports.useGuideEntry = useGuideEntry;
3874
- //# sourceMappingURL=guide-runtime-B2RjoQeb.cjs.map
3878
+ //# sourceMappingURL=guide-runtime-CFVYM8Xi.cjs.map