-
Notifications
You must be signed in to change notification settings - Fork 87
fix: do not trap focus on item Tab, extract keyboard tests #8912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
expect(document.activeElement).to.equal(buttons[1]); | ||
}); | ||
|
||
it('should switch submenu again on subsequent item Arrow Left', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test was added in vaadin/vaadin-menu-bar#24 - back then, the logic was a bit different (it was refactored to KeyboardDirectionMixin
much later). So maybe it's not needed anymore, however, I decided to keep it and added a similar test for Arrow Right for consistency.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work correctly now.
Description
Based on the finding from #8908 (comment)
keyboard-navigation.test.js
Type of change