(e: MouseEvent)
| 24 | const containerRef = useRef<HTMLDivElement>(null); |
| 25 | |
| 26 | useEffect(() => { |
| 27 | const handleClickOutside = (e: MouseEvent) => { |
| 28 | if (containerRef.current && !containerRef.current.contains(e.target as Node)) { |
| 29 | setShowResults(false); |
| 30 | } |
| 31 | }; |
| 32 | document.addEventListener("mousedown", handleClickOutside); |
| 33 | return () => document.removeEventListener("mousedown", handleClickOutside); |
nothing calls this directly
no outgoing calls
no test coverage detected