MCPcopy Create free account
hub / github.com/Roy3838/Observer / handleClickOutside

Function handleClickOutside

app/src/components/GenerateAgentModal.tsx:96–100  ·  view source on GitHub ↗
(event: MouseEvent)

Source from the content-addressed store, hash-verified

94 // Close dropdown when clicking outside
95 useEffect(() => {
96 const handleClickOutside = (event: MouseEvent) => {
97 if (modelDropdownRef.current && !modelDropdownRef.current.contains(event.target as Node)) {
98 setIsModelDropdownOpen(false);
99 }
100 };
101 if (isModelDropdownOpen) {
102 document.addEventListener('mousedown', handleClickOutside);
103 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected