Fix usages of useContextMenu which never pass the ref to the element (#9449)

This commit is contained in:
Michael Telatynski 2022-10-18 13:39:59 +01:00 committed by GitHub
parent 450ddbe2b0
commit 0ef8c80815
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -179,6 +179,7 @@ const EmojiButton: React.FC<IEmojiButtonProps> = ({ addEmoji, menuPosition }) =>
iconClassName="mx_MessageComposer_emoji"
onClick={openMenu}
title={_t("Emoji")}
inputRef={button}
/>
{ contextMenu }