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:
Kristiyan Kostadinov
2017-10-11 01:37:07 +02:00
committed by Andrew Seguin
parent a9600e7ce9
commit d822a3948e
7 changed files with 42 additions and 20 deletions
+2 -2
View File
@@ -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', () => {