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}
|
ref={contextMenu.refs.setFloating}
|
||||||
style={contextMenu.floatingStyles}
|
style={contextMenu.floatingStyles}
|
||||||
{...contextMenu.getFloatingProps()}
|
{...contextMenu.getFloatingProps()}
|
||||||
|
onClick={() => [contextMenu.close()]}
|
||||||
>
|
>
|
||||||
<Component {...contextMenu.props} />
|
<Component {...contextMenu.props} />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user