Skip to content

Commit

Permalink
fix: ControlledMenu error (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
dclinz authored Nov 7, 2022
1 parent 2fbf244 commit aea622e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react-menu3/components/ControlledMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const ControlledMenuFr = (

const handleScreenEventForCancel = useCallback(
(ev: MouseEvent) => {
if (!isWithinMenu(ev)) {
if (!isWithinMenu(ev.target)) {
ev.preventDefault();
ev.stopPropagation();
}
Expand Down

0 comments on commit aea622e

Please sign in to comment.