1
0
mirror of https://github.com/spacebarchat/client.git synced 2024-11-22 10:22:30 +01:00

close context menu on click

This commit is contained in:
Puyodead1 2023-12-18 11:48:29 -05:00
parent 8022c5146c
commit 4bd83dd5b0
No known key found for this signature in database
GPG Key ID: BA5F91AAEF68E5CE

View File

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