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 committed 2021-03-17 21:12:19 +02:00
1 parent faad10c8ca
commit a944e8e24a
1 file changed
+1 -1
@@ -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>