Skip to content
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

Fix bug where users could tab away from EuiComboBox while navigating the options list #926

Merged
merged 3 commits into from
Jun 14, 2018

Conversation

cjcenizal
Copy link
Contributor

This fixes a bug I introduced in #866. In previous discussions, we decided to block the user from tabbing off the combo box if they're navigating through the options list. This mimics how Chrome blocks the user from tabbing off an open select.

@@ -111,6 +121,53 @@ describe('props', () => {
});

describe('behavior', () => {
describe('tabbing', () => {
test.skip(`off the search input closes the options list if the user isn't navigating the options`, () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chandlerprall Maybe you can help me debug this test...

@cjcenizal
Copy link
Contributor Author

Thanks for the assist, @chandlerprall!

@cjcenizal cjcenizal force-pushed the combo-box-list-tab branch from ccee273 to fe5ade7 Compare June 14, 2018 17:57
Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; pulled changes and tested tabbing functionality in the docs example.

@cjcenizal cjcenizal merged commit 74944d4 into elastic:master Jun 14, 2018
@cjcenizal cjcenizal deleted the combo-box-list-tab branch June 14, 2018 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants