diff --git a/src/react-menu3/components/ControlledMenu.tsx b/src/react-menu3/components/ControlledMenu.tsx index 0983f81f..23dcea66 100644 --- a/src/react-menu3/components/ControlledMenu.tsx +++ b/src/react-menu3/components/ControlledMenu.tsx @@ -112,7 +112,7 @@ export const ControlledMenuFr = ( const handleScreenEventForCancel = useCallback( (ev: MouseEvent) => { - if (!isWithinMenu(ev)) { + if (!isWithinMenu(ev.target)) { ev.preventDefault(); ev.stopPropagation(); }