(e: MouseEvent)
| 31 | if (!isOpen) return; |
| 32 | |
| 33 | const handler = (e: MouseEvent) => { |
| 34 | if ( |
| 35 | containerRef.current && |
| 36 | !containerRef.current.contains(e.target as Node) |
| 37 | ) { |
| 38 | setIsOpen(false); |
| 39 | } |
| 40 | }; |
| 41 | |
| 42 | document.addEventListener("mousedown", handler); |
| 43 | return () => document.removeEventListener("mousedown", handler); |
nothing calls this directly
no outgoing calls
no test coverage detected