diff --git a/src/index.tsx b/src/index.tsx index cee0ab58..1833003b 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -779,12 +779,6 @@ export const Content = React.forwardRef(function ( return; } }} - onEscapeKeyDown={(e) => { - if (!modal) { - e.preventDefault(); - return; - } - }} onPointerMove={(event) => { rest.onPointerMove?.(event); if (!pointerStartRef.current) return;