Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
romgrk committed May 7, 2024
1 parent 74bb524 commit 3d49cb9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/x-data-grid/src/components/menu/GridMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ function GridMenu(props: GridMenuProps) {
};

const handleClickAway: ClickAwayListenerProps['onClickAway'] = (event) => {
if (event.target && (getTarget(target) === event.target || getTarget(target)?.contains(event.target as Node))) {
if (
event.target &&
(getTarget(target) === event.target || getTarget(target)?.contains(event.target as Node))
) {
return;
}
onClose(event);
Expand Down

0 comments on commit 3d49cb9

Please sign in to comment.