MCPcopy Create free account
hub / github.com/dhavalCode/ai-image-generator / handleClickOutside

Function handleClickOutside

client/src/components/ErrorModal.tsx:31–38  ·  view source on GitHub ↗
(event: MouseEvent)

Source from the content-addressed store, hash-verified

29 }, [open])
30
31 const handleClickOutside = (event: MouseEvent) => {
32 if (
33 modalRef.current &&
34 !modalRef.current.contains(event.target as Node)
35 ) {
36 setIsOpen(false)
37 }
38 }
39
40 const handleClose = () => {
41 setIsOpen(false)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected