MCPcopy Create free account
hub / github.com/AsyncFuncAI/deepwiki-open / handleOutsideClick

Function handleOutsideClick

src/components/Mermaid.tsx:206–210  ·  view source on GitHub ↗
(e: MouseEvent)

Source from the content-addressed store, hash-verified

204 // Handle click outside to close
205 useEffect(() => {
206 const handleOutsideClick = (e: MouseEvent) => {
207 if (modalRef.current && !modalRef.current.contains(e.target as Node)) {
208 onClose();
209 }
210 };
211
212 if (isOpen) {
213 document.addEventListener('mousedown', handleOutsideClick);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected