mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
Close context menu when user clicks the Home button
This commit is contained in:
parent
a7e6d8e7f0
commit
462be2b6a0
@ -203,6 +203,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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user