Tabbing into a menubar will focus the latest expanded trigger. When the trigger is focused, but not expanded, then navigating with keyboard will highlight the other triggers; but using keyboard to expand the item (Enter/Space/Arrow down) will only expand the focused trigger.
To Reproduce
Steps to reproduce the behavior:
On initial page load, tab into menubar trigger
Use keyboard (e.g. left/right) to highlight another trigger
Trigger the button with keyboard (Enter/Space/Arrow down) to try and expand the highlighted trigger.
It expands the focused trigger, even if it isn't the current highlighted one.
Expected behavior
It should expand the highlighted item, rather than what was initially focused.
Screenshots
Desktop (please complete the following information):
OS: macOS 10.14
Browser Brave
Version 1.57.64 (Chromium 116.0.5845.188)
Additional context
See Radix UI Menubar as an example of expected behavior.
Describe the bug
Tabbing into a menubar will focus the latest expanded trigger. When the trigger is focused, but not expanded, then navigating with keyboard will highlight the other triggers; but using keyboard to expand the item (Enter/Space/Arrow down) will only expand the focused trigger.
To Reproduce Steps to reproduce the behavior:
Expected behavior
It should expand the highlighted item, rather than what was initially focused.
Screenshots
Desktop (please complete the following information):
Additional context See Radix UI Menubar as an example of expected behavior.