Redesign: Fix sidebar menu not closing when opening the composer (#40510)

This commit is contained in:
diondiondion
2026-09-15 10:23:04 +00:00
committed by GitHub
parent fba604991b
commit 8f060d33dd

View File

@@ -14,6 +14,7 @@ import {
import FediIcon from '@/images/icons/icon_fediverse.svg?react';
import { fetchLists } from '@/mastodon/actions/lists';
import { closeNavigation } from '@/mastodon/actions/navigation';
import { fetchFollowedHashtags } from '@/mastodon/actions/tags_typed';
import { FOCUS_TARGET } from '@/mastodon/components/navigation_focus_target';
import { useScrollSensor } from '@/mastodon/hooks/useScrollSensor';
@@ -88,6 +89,7 @@ export const RedesignNavigationPanel: React.FC<{
);
const openComposer = useCallback(() => {
dispatch(closeNavigation());
dispatch(openNewComposer({ type: 'post' }));
}, [dispatch]);