Submenu closes while focus is on parent link #50744
Labels
[Block] Navigation
Affects the Navigation Block
[Feature] Interactivity API
API to add frontend interactivity to blocks.
[Type] Bug
An existing feature does not function as intended
Description
The Interactivity API for the Navigation block closes the submenu of a parent when focus remains on the parent. Without the Interactivity API, the submenu will remain open while focus is on the parent link.
Step-by-step reproduction instructions
enter
to open the submenushift + tab
to return focus to the parent linkWithout the Interactivity API, the submenu remains open when focus is on the parent link.
With the Interactivity API, the submenu closes when focus is on the parent link.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: