Close context menu when user clicks the Home button

This commit is contained in:
Michael Telatynski 2020-11-09 13:45:33 +00:00
parent a7e6d8e7f0
commit 462be2b6a0

View File

@ -203,6 +203,7 @@ export default class UserMenu extends React.Component<IProps, IState> {
ev.stopPropagation(); ev.stopPropagation();
defaultDispatcher.dispatch({action: 'view_home_page'}); defaultDispatcher.dispatch({action: 'view_home_page'});
this.setState({contextMenuPosition: null}); // also close the menu
}; };
private onCommunitySettingsClick = (ev: ButtonEvent) => { private onCommunitySettingsClick = (ev: ButtonEvent) => {