(event)
| 24 | // Close dropdown on outside click |
| 25 | useEffect(() => { |
| 26 | function handleClickOutside(event) { |
| 27 | if (dropdownRef.current && !dropdownRef.current.contains(event.target)) { |
| 28 | setIsOpen(false); |
| 29 | } |
| 30 | } |
| 31 | document.addEventListener("mousedown", handleClickOutside); |
| 32 | return () => document.removeEventListener("mousedown", handleClickOutside); |
| 33 | }, []); |
nothing calls this directly
no outgoing calls
no test coverage detected