Prevent useContextMenu isOpen from being true if the button ref goes away (#9418)
This commit is contained in:
committed by
GitHub
parent
e1d631cb47
commit
13db1b17be
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user