(event: MouseEvent)
| 14 | |
| 15 | useEffect(() => { |
| 16 | function handleClickOutside(event: MouseEvent) { |
| 17 | if (dropdownRef.current && !dropdownRef.current.contains(event.target as Node)) { |
| 18 | setIsOpen(false); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | document.addEventListener('mousedown', handleClickOutside); |
| 23 | return () => { |
nothing calls this directly
no outgoing calls
no test coverage detected