Skip to content

Commit 73eb43d

Browse files
authored
Merge pull request matrix-org#5406 from matrix-org/t3chguy/fix/home-button-ctx-menu
Close context menu when user clicks the Home button
2 parents 0b10ab6 + 462be2b commit 73eb43d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/structures/UserMenu.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ export default class UserMenu extends React.Component<IProps, IState> {
210210
ev.stopPropagation();
211211

212212
defaultDispatcher.dispatch({action: 'view_home_page'});
213+
this.setState({contextMenuPosition: null}); // also close the menu
213214
};
214215

215216
private onCommunitySettingsClick = (ev: ButtonEvent) => {

0 commit comments

Comments
 (0)