(e: MouseEvent)
| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected