From 4bd83dd5b0ecdd2a9dc994b46775ce533dd1ab42 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Mon, 18 Dec 2023 11:48:29 -0500 Subject: [PATCH] close context menu on click --- src/contexts/ContextMenuContext.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/contexts/ContextMenuContext.tsx b/src/contexts/ContextMenuContext.tsx index 217c066..a65c6eb 100644 --- a/src/contexts/ContextMenuContext.tsx +++ b/src/contexts/ContextMenuContext.tsx @@ -58,6 +58,7 @@ export const ContextMenuContextProvider: React.FC = ({ children }) => { ref={contextMenu.refs.setFloating} style={contextMenu.floatingStyles} {...contextMenu.getFloatingProps()} + onClick={() => [contextMenu.close()]} >