Page MenuHomePhabricator

LanguageSelector: Highlighted index in LanguageSelector component's keyboard navigation does not reset on reopening menu
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Open Language Selector either with a click or by navigating with the keyboard to the button and pressing enter.
  • Press arrow down several times, so that the vertical scrollbar moves down.
  • Close the language selector without selecting any language by clicking anywhere outside of the component
  • Reopen the language selector

What happens?:

  • The last highlighted element before closing the language selector is still highlighted.

What should have happened instead?:

  • Upon opening the Language selector there shouldn't be any language highlighted
  • The first language to be highlighted on keyboard down arrow press should be the first language on the list.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

guergana.tzatchkova renamed this task from QueryBuilder: Reset highlighted index in LanguageSelector component's keyboard navigation to QueryBuilder: Highlighted index in LanguageSelector component's keyboard navigation does not reset on reopening menu.Apr 13 2023, 12:11 PM
Sarai-WMDE renamed this task from QueryBuilder: Highlighted index in LanguageSelector component's keyboard navigation does not reset on reopening menu to LanguageSelector: Highlighted index in LanguageSelector component's keyboard navigation does not reset on reopening menu.Apr 28 2023, 4:32 PM