diff --git a/src/features/compose/components/language-dropdown.tsx b/src/features/compose/components/language-dropdown.tsx index dadbbeb30b..b2382d797f 100644 --- a/src/features/compose/components/language-dropdown.tsx +++ b/src/features/compose/components/language-dropdown.tsx @@ -283,7 +283,7 @@ const LanguageDropdown: React.FC = ({ composeId }) => { useEffect(() => { if (isOpen) { if (refs.floating.current) { - (refs.floating.current?.querySelector('li a[role=\'button\']') as HTMLAnchorElement)?.focus(); + (refs.floating.current?.querySelector('div[aria-selected=true]') as HTMLDivElement)?.focus(); } document.addEventListener('click', handleDocumentClick, false);