Skip to content

Commit

Permalink
add handleRequestClose
Browse files Browse the repository at this point in the history
  • Loading branch information
jenny-s51 committed Sep 8, 2023
1 parent 89387e0 commit 35b5135
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/module/src/components/contextmenu/ContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ const ContextMenu: React.FunctionComponent<ContextMenuProps> = ({
return (
<Popper {...other} closeOnEsc closeOnOutsideClick open={isOpen} onRequestClose={handleOnRequestClose}>
<div className={css(styles.dropdown, styles.modifiers.expanded)}>
<Dropdown toggle={() => <></>} className={css(topologyStyles.topologyContextMenuCDropdownMenu)}>
<Dropdown
onSelect={handleOnRequestClose}
toggle={() => <></>}
className={css(topologyStyles.topologyContextMenuCDropdownMenu)}
>
{children}
</Dropdown>
</div>
Expand Down

0 comments on commit 35b5135

Please sign in to comment.