You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the behavior of vaadin-menu-bar is incorrect when opening submenu but not focusing any item.
Arrow Left
Click to open submenu -> Arrow Down to focus item -> Arrow Left = previous root level button focused (CORRECT)
Click to open submenu -> Arrow Left = same root level button focused (WRONG)
Arrow RIght
Click to open submenu -> Arrow Down to focus item -> Arrow Right = next root level button focused (CORRECT)
Click to open submenu -> Arrow Right = submenu stays open, nothing happens (WRONG)
Expected outcome
Expected the focus to move on Arrow Left or Arrow Right regardless of whether the item in submenu is focused or not.
See ARIA authoring practices - Navigation Menubar example for the correct behavior.
Description
Currently the behavior of
vaadin-menu-bar
is incorrect when opening submenu but not focusing any item.Arrow Left
Arrow RIght
Expected outcome
Expected the focus to move on Arrow Left or Arrow Right regardless of whether the item in submenu is focused or not.
See ARIA authoring practices - Navigation Menubar example for the correct behavior.
Minimal reproducible example
Steps to reproduce
Environment
Vaadin version(s): 24.7 and earlier
Browsers
Issue is not browser related
Note
Without focusing item, the
keydown
event is fired from the context menu butitem
is empty here:web-components/packages/menu-bar/src/vaadin-menu-bar-mixin.js
Lines 860 to 862 in 0ea930d
The text was updated successfully, but these errors were encountered: