From c64a5a3244e01bb083528d4526f7752b25403e9f Mon Sep 17 00:00:00 2001 From: emil Date: Thu, 5 Sep 2024 18:08:59 -0700 Subject: [PATCH] ok try 3 --- dist/index.js | 10 +++++----- dist/index.mjs | 10 +++++----- src/index.tsx | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/dist/index.js b/dist/index.js index d80bd5e..ec98261 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1229,14 +1229,14 @@ const Content = /*#__PURE__*/ React__namespace.default.forwardRef(function({ onO }, onPointerDownOutside: (e)=>{ onPointerDownOutside == null ? void 0 : onPointerDownOutside(e); - if (!modal || e.defaultPrevented) { - e.preventDefault(); - return; - } + // if (!modal || e.defaultPrevented) { + // e.preventDefault(); + // return; + // } if (keyboardIsOpen.current) { keyboardIsOpen.current = false; } - e.preventDefault(); + // e.preventDefault(); onOpenChange == null ? void 0 : onOpenChange(false); if (!dismissible || openProp !== undefined) { return; diff --git a/dist/index.mjs b/dist/index.mjs index e59461b..6bbc1bf 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -1207,14 +1207,14 @@ const Content = /*#__PURE__*/ React__default.forwardRef(function({ onOpenAutoFoc }, onPointerDownOutside: (e)=>{ onPointerDownOutside == null ? void 0 : onPointerDownOutside(e); - if (!modal || e.defaultPrevented) { - e.preventDefault(); - return; - } + // if (!modal || e.defaultPrevented) { + // e.preventDefault(); + // return; + // } if (keyboardIsOpen.current) { keyboardIsOpen.current = false; } - e.preventDefault(); + // e.preventDefault(); onOpenChange == null ? void 0 : onOpenChange(false); if (!dismissible || openProp !== undefined) { return; diff --git a/src/index.tsx b/src/index.tsx index c2a55ce..128ac79 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -992,14 +992,14 @@ const Content = React.forwardRef(function ( }} onPointerDownOutside={(e) => { onPointerDownOutside?.(e); - if (!modal || e.defaultPrevented) { - e.preventDefault(); - return; - } + // if (!modal || e.defaultPrevented) { + // e.preventDefault(); + // return; + // } if (keyboardIsOpen.current) { keyboardIsOpen.current = false; } - e.preventDefault(); + // e.preventDefault(); onOpenChange?.(false); if (!dismissible || openProp !== undefined) { return;