Merge pull request #3746 from matrix-org/t3chguy/emoji_picker

Make EmojiPicker an unmanaged Context Menu as it is too complex to be managed
This commit is contained in:
Michael Telatynski
2019-12-19 16:58:34 +00:00
committed by GitHub
2 changed files with 13 additions and 9 deletions

View File

@@ -88,7 +88,7 @@ const ReactButton = ({mxEvent, reactions, onFocusChange}) => {
if (menuDisplayed) {
const buttonRect = button.current.getBoundingClientRect();
const ReactionPicker = sdk.getComponent('emojipicker.ReactionPicker');
contextMenu = <ContextMenu {...aboveLeftOf(buttonRect)} onFinished={closeMenu} catchTab={false}>
contextMenu = <ContextMenu {...aboveLeftOf(buttonRect)} onFinished={closeMenu} managed={false}>
<ReactionPicker mxEvent={mxEvent} reactions={reactions} onFinished={closeMenu} />
</ContextMenu>;
}