mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-22 02:12:38 +01:00
close context menu on click
This commit is contained in:
parent
8022c5146c
commit
4bd83dd5b0
@ -58,6 +58,7 @@ export const ContextMenuContextProvider: React.FC<any> = ({ children }) => {
|
||||
ref={contextMenu.refs.setFloating}
|
||||
style={contextMenu.floatingStyles}
|
||||
{...contextMenu.getFloatingProps()}
|
||||
onClick={() => [contextMenu.close()]}
|
||||
>
|
||||
<Component {...contextMenu.props} />
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user