diff --git a/src/InternalEvents.tsx b/src/InternalEvents.tsx index 0347000..36d1e66 100644 --- a/src/InternalEvents.tsx +++ b/src/InternalEvents.tsx @@ -42,6 +42,7 @@ function useToggleHandler() { Escape: (event: KeyboardEvent) => { if (showing) { event.stopPropagation(); + event.preventDefault(); options.callbacks?.onClose?.(); }