Skip to content

Commit

Permalink
fix: esc shoud close drawer when modal is false (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilkowalski committed Sep 16, 2024
1 parent 01ff48c commit e2941a4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -779,12 +779,6 @@ export const Content = React.forwardRef<HTMLDivElement, ContentProps>(function (
return;
}
}}
onEscapeKeyDown={(e) => {
if (!modal) {
e.preventDefault();
return;
}
}}
onPointerMove={(event) => {
rest.onPointerMove?.(event);
if (!pointerStartRef.current) return;
Expand Down

0 comments on commit e2941a4

Please sign in to comment.