1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Close cluster actions menu automatically on select to clean up DOM and ensure consistent behavior

Signed-off-by: Alex Culliere <alozhkin@mirantis.com>
This commit is contained in:
Alex Culliere 2021-02-15 16:58:37 +02:00
parent faad10c8ca
commit a944e8e24a

View File

@ -13,7 +13,7 @@ interface Props {
export const MainLayoutHeader = observer(({ cluster, className }: Props) => {
const actions = ClusterActions(cluster);
const renderMenu = () => <MenuActions className="ClusterActionsMenu">
const renderMenu = () => <MenuActions autoCloseOnSelect className="ClusterActionsMenu">
<MenuItem onClick={actions.SHOW_SETTINGS}>
<span>Settings</span>
</MenuItem>