(event: MouseEvent)
| 28 | |
| 29 | useEffect(() => { |
| 30 | function handleClickOutside(event: MouseEvent) { |
| 31 | if (dropdownRef.current && !dropdownRef.current.contains(event.target as Node)) { |
| 32 | setIsOpen(false); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | document.addEventListener('mousedown', handleClickOutside); |
| 37 | return () => { |
nothing calls this directly
no outgoing calls
no test coverage detected