Prevent useContextMenu isOpen from being true if the button ref goes away (#9418)
This commit is contained in:
parent
e1d631cb47
commit
13db1b17be
6 changed files with 38 additions and 35 deletions
|
@ -69,6 +69,7 @@ export const LocationButton: React.FC<IProps> = ({ roomId, sender, menuPosition,
|
|||
iconClassName="mx_MessageComposer_location"
|
||||
onClick={openMenu}
|
||||
title={_t("Location")}
|
||||
inputRef={button}
|
||||
/>
|
||||
|
||||
{ contextMenu }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue