1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-16 22:01:54 +03:00

fix repeated context menu interaction by not erroring

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2020-07-01 23:13:54 +01:00
parent e8702aafa5
commit 6424ffb22a

View File

@ -125,9 +125,7 @@ export default class UserMenu extends React.Component<IProps, IState> {
});
};
private onCloseMenu = (ev: InputEvent) => {
ev.preventDefault();
ev.stopPropagation();
private onCloseMenu = () => {
this.setState({contextMenuPosition: null});
};