-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(menu): include leave intent delay for sub menus (#16466)
* fix(menu): protect access to child refs when looking for activeElement * fix(menu): include leave delay to avoid accidental closure of sub menu The sub menu can accidentally trigger a premature closure of the sub menu in the following cases: - the mouse moves across and down as the user selects a lower sub menu, causing the mouse to leave the menuItem. - the menu has a scroll bar, as the mouse crosses this to enter the sub menu it triggers the closure before the user can access the sub menu. Including a delay in the closure allows for the users mouse to reenter the submenu and cancel the closure of the menu. * chore(contributor): add Kilian-Collender as contributor * fix(menu): clean up test aria-label * feat(menu): add aria-label option for menu items * fix(menu): remove aria-label to make AVT tests happy
- Loading branch information
1 parent
b62c6b6
commit 1771cb6
Showing
5 changed files
with
110 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters