MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / handleClickOutside

Function handleClickOutside

src/components/NotificationDropdown.tsx:80–84  ·  view source on GitHub ↗
(event: MouseEvent)

Source from the content-addressed store, hash-verified

78 useEffect(() => {
79 // Close dropdown when clicking outside
80 const handleClickOutside = (event: MouseEvent) => {
81 if (dropdownRef.current && !dropdownRef.current.contains(event.target as Node)) {
82 setIsOpen(false);
83 }
84 };
85
86 if (isOpen) {
87 document.addEventListener("mousedown", handleClickOutside);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected