You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Fix right clicking on add reactions prompt button behaviour
This commit is contained in:
@@ -50,6 +50,10 @@ const ReactButton = ({ mxEvent, reactions }: IProps) => {
|
|||||||
})}
|
})}
|
||||||
title={_t("Add reaction")}
|
title={_t("Add reaction")}
|
||||||
onClick={openMenu}
|
onClick={openMenu}
|
||||||
|
onContextMenu={e => {
|
||||||
|
e.preventDefault();
|
||||||
|
openMenu();
|
||||||
|
}}
|
||||||
isExpanded={menuDisplayed}
|
isExpanded={menuDisplayed}
|
||||||
inputRef={button}
|
inputRef={button}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user