diff --git a/src/pages/home.jsx b/src/pages/home.jsx index f10f633e..d823f95e 100644 --- a/src/pages/home.jsx +++ b/src/pages/home.jsx @@ -152,8 +152,11 @@ function NotificationsMenu({ anchorRef, state, onClose }) { if (state === 'open') loadNotifications(); }, [state]); + const menuRef = useRef(); + return ( { + menuRef.current?.closeMenu?.(); + }, + }} overflow="auto" viewScroll="close" position="anchor"