Close context menu when user clicks the Home button

pull/21833/head
Michael Telatynski 2020-11-09 13:45:33 +00:00
parent a7e6d8e7f0
commit 462be2b6a0
1 changed files with 1 additions and 0 deletions

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) => {