diff --git a/packages/core/src/menu/menu.tsx b/packages/core/src/menu/menu.tsx index 5abd6de3..4e24206c 100644 --- a/packages/core/src/menu/menu.tsx +++ b/packages/core/src/menu/menu.tsx @@ -192,9 +192,12 @@ export const Menu = (props: MenuProps) => { } const handleKeyDown = (e) => { - e.stopPropagation() const { isEscape } = getKey(e) - if (isEscape && closeFromParentMenuItem) closeFromParentMenuItem() + if (isEscape && closeFromParentMenuItem) { + e.stopPropagation() + e.preventDefault() + closeFromParentMenuItem() + } } useLayoutEffect(() => {