Skip to content

Commit

Permalink
fix: menu toggle issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jenny-s51 committed Aug 17, 2023
1 parent 2f5661b commit 6c90cf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions packages/module/src/components/contextmenu/ContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ const ContextMenu: React.FunctionComponent<ContextMenuProps> = ({
}}
>
<div className={css(styles.dropdown, styles.modifiers.expanded)}>
<Dropdown
toggle={(toggleRef: React.Ref<MenuToggleElement>) => <MenuToggle ref={toggleRef} />}
className={css(topologyStyles.topologyContextMenuCDropdownMenu)}
>
<Dropdown toggle={() => <></>} className={css(topologyStyles.topologyContextMenuCDropdownMenu)}>
{children}
</Dropdown>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ const ContextSubMenuItem: React.FunctionComponent<ContextSubMenuItemProps> = ({
}
}}
>
<Dropdown
toggle={(toggleRef: React.Ref<MenuToggleElement>) => <MenuToggle ref={toggleRef} />}
className={css(topologyStyles.topologyContextMenuCDropdownMenu)}
>
<Dropdown toggle={() => <></>} className={css(topologyStyles.topologyContextMenuCDropdownMenu)}>
{children}
</Dropdown>
</div>
Expand Down

0 comments on commit 6c90cf4

Please sign in to comment.