You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-15 11:01:52 +03:00
Merge pull request #5406 from matrix-org/t3chguy/fix/home-button-ctx-menu
Close context menu when user clicks the Home button
This commit is contained in:
@ -210,6 +210,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) => {
|
||||||
|
Reference in New Issue
Block a user