Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
a-creation committed Sep 6, 2024
1 parent 52867f9 commit 529f716
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
30 changes: 15 additions & 15 deletions dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1188,13 +1188,13 @@ const Content = /*#__PURE__*/ React__default.forwardRef(function({ onOpenAutoFoc
...style
} : style,
onOpenAutoFocus: (e)=>{
if (onOpenAutoFocus) {
onOpenAutoFocus(e);
} else {
var _drawerRef_current;
// e.preventDefault();
(_drawerRef_current = drawerRef.current) == null ? void 0 : _drawerRef_current.focus();
}
// if (onOpenAutoFocus) {
// onOpenAutoFocus(e);
// } else {
// var _drawerRef_current;
// // e.preventDefault();
// (_drawerRef_current = drawerRef.current) == null ? void 0 : _drawerRef_current.focus();
// }
},
onPointerDown: (event)=>{
if (handleOnly) return;
Expand Down Expand Up @@ -1222,16 +1222,16 @@ const Content = /*#__PURE__*/ React__default.forwardRef(function({ onOpenAutoFoc
closeDrawer();
},
onFocusOutside: (e)=>{
if (!modal) {
e.preventDefault();
return;
}
// if (!modal) {
// e.preventDefault();
// return;
// }
},
onEscapeKeyDown: (e)=>{
if (!modal) {
e.preventDefault();
return;
}
// if (!modal) {
// e.preventDefault();
// return;
// }
},
onPointerMove: (event)=>{
if (handleOnly) return;
Expand Down
16 changes: 8 additions & 8 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1008,16 +1008,16 @@ const Content = React.forwardRef<HTMLDivElement, ContentProps>(function (
closeDrawer();
}}
onFocusOutside={(e) => {
if (!modal) {
e.preventDefault();
return;
}
// if (!modal) {
// e.preventDefault();
// return;
// }
}}
onEscapeKeyDown={(e) => {
if (!modal) {
e.preventDefault();
return;
}
// if (!modal) {
// e.preventDefault();
// return;
// }
}}
onPointerMove={(event) => {
if (handleOnly) return;
Expand Down

0 comments on commit 529f716

Please sign in to comment.