MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / close

Function close

graph-ui/src/graph/GraphEdgeControls.tsx:19–21  ·  view source on GitHub ↗
(event: PointerEvent)

Source from the content-addressed store, hash-verified

17 const details = useRef<HTMLDetailsElement>(null);
18 useEffect(() => {
19 const close = (event: PointerEvent) => {
20 if (details.current?.open && !details.current.contains(event.target as Node)) details.current.open = false;
21 };
22 document.addEventListener('pointerdown', close);
23 return () => document.removeEventListener('pointerdown', close);
24 }, []);

Callers 1

useDismissibleMenuFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected