@dinofront/design_system 1.19.6 → 1.19.8

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.
package/dist/index.js CHANGED
@@ -994,12 +994,18 @@ function $t({ content: e, children: t, side: r = "top", align: i = "center", off
994
994
  };
995
995
  }, [w, E]), l(() => {
996
996
  if (!w || !g) return;
997
- let e = () => k(!1);
997
+ let e = (e) => {
998
+ E?.contains(e.target) || k(!1);
999
+ };
998
1000
  return document.addEventListener("scroll", e, {
999
1001
  capture: !0,
1000
1002
  passive: !0
1001
1003
  }), () => document.removeEventListener("scroll", e, { capture: !0 });
1002
- }, [w, g]), l(() => {
1004
+ }, [
1005
+ w,
1006
+ g,
1007
+ E
1008
+ ]), l(() => {
1003
1009
  if (!w || !_ || !E) return;
1004
1010
  let e = document.activeElement;
1005
1011
  return (E.querySelector("a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])") ?? E).focus(), () => e?.focus?.();