mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(menu): not handling keyboard events when opened by mouse (#4843)
Fixes the menu keyboard interactions not working when it is opened by a click. Fixes #4991.
This commit is contained in:
committed by
Andrew Seguin
parent
a9600e7ce9
commit
d822a3948e
@@ -97,9 +97,9 @@ describe('menu', () => {
|
||||
expectFocusOn(page.items(0));
|
||||
});
|
||||
|
||||
it('should not focus the first item when opened with mouse', () => {
|
||||
it('should focus the panel when opened by mouse', () => {
|
||||
page.trigger().click();
|
||||
expectFocusOn(page.trigger());
|
||||
expectFocusOn(page.menu());
|
||||
});
|
||||
|
||||
it('should focus subsequent items when down arrow is pressed', () => {
|
||||
|
||||
Reference in New Issue
Block a user