Fix right clicking on add reactions prompt button behaviour

This commit is contained in:
Michael Telatynski 2021-05-17 10:01:56 +01:00
parent a22a1918e1
commit 6e5847ea6b

View file

@ -50,6 +50,10 @@ const ReactButton = ({ mxEvent, reactions }: IProps) => {
})}
title={_t("Add reaction")}
onClick={openMenu}
onContextMenu={e => {
e.preventDefault();
openMenu();
}}
isExpanded={menuDisplayed}
inputRef={button}
/>