MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / handler

Function handler

frontend-workflow/src/components/UserMenu.tsx:30–34  ·  view source on GitHub ↗
(e: MouseEvent)

Source from the content-addressed store, hash-verified

28 // Close on outside click
29 useEffect(() => {
30 const handler = (e: MouseEvent) => {
31 if (ref.current && !ref.current.contains(e.target as Node)) {
32 setOpen(false);
33 }
34 };
35 document.addEventListener("mousedown", handler);
36 return () => document.removeEventListener("mousedown", handler);
37 }, []);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected