Merge pull request #5406 from matrix-org/t3chguy/fix/home-button-ctx-menu

Close context menu when user clicks the Home button
pull/21833/head
Michael Telatynski 2020-11-10 01:19:33 +00:00 committed by GitHub
commit 73eb43d32a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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