@dinofront/design_system 1.19.2 → 1.19.3-alpha.0

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
@@ -1905,7 +1905,10 @@ var nr = {
1905
1905
  }, [y]), l(() => {
1906
1906
  if (!e) return;
1907
1907
  let t = document.activeElement;
1908
- return v.current?.focus(), () => t?.focus?.();
1908
+ return v.current?.focus(), () => {
1909
+ let e = document.activeElement;
1910
+ e instanceof HTMLElement && _.current?.contains(e) && e.blur(), t?.focus?.();
1911
+ };
1909
1912
  }, [e]), !y) return null;
1910
1913
  let S = n === "left" || n === "right", C = S ? nr[r] : rr[r];
1911
1914
  return _e(/* @__PURE__ */ J("dialog", {
@@ -1913,7 +1916,7 @@ var nr = {
1913
1916
  onCancel: (e) => {
1914
1917
  e.preventDefault(), t();
1915
1918
  },
1916
- "aria-hidden": b === "exiting" || void 0,
1919
+ inert: b === "exiting",
1917
1920
  "aria-labelledby": i ? "drawer-title" : void 0,
1918
1921
  "aria-describedby": a ? "drawer-desc" : void 0,
1919
1922
  className: "fixed inset-0 z-50 m-0 h-full max-h-none w-full max-w-none overflow-hidden border-0 bg-transparent p-0 text-inherit backdrop:bg-transparent",