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:
parent
faad10c8ca
commit
a944e8e24a
@ -13,7 +13,7 @@ interface Props {
|
|||||||
|
|
||||||
export const MainLayoutHeader = observer(({ cluster, className }: Props) => {
|
export const MainLayoutHeader = observer(({ cluster, className }: Props) => {
|
||||||
const actions = ClusterActions(cluster);
|
const actions = ClusterActions(cluster);
|
||||||
const renderMenu = () => <MenuActions className="ClusterActionsMenu">
|
const renderMenu = () => <MenuActions autoCloseOnSelect className="ClusterActionsMenu">
|
||||||
<MenuItem onClick={actions.SHOW_SETTINGS}>
|
<MenuItem onClick={actions.SHOW_SETTINGS}>
|
||||||
<span>Settings</span>
|
<span>Settings</span>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user