Prevent useContextMenu isOpen from being true if the button ref goes away (#9418)

This commit is contained in:
Michael Telatynski
2022-10-17 17:42:04 +01:00
committed by GitHub
parent e1d631cb47
commit 13db1b17be
6 changed files with 38 additions and 35 deletions

View File

@@ -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 }