Skip to content

Commit

Permalink
EuiComboBox keyboard navigation: tab exit (#1576)
Browse files Browse the repository at this point in the history
* only prevent tab from leaving combobox if the list is open

* #1576 changelog entry
  • Loading branch information
thompsongl authored Feb 19, 2019
1 parent bb9a1ec commit 216c12e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
**Bug fixes**

- Fixed content cut off in `EuiContextMenuPanel` when height changes dynamically ([#1559](https://github.com/elastic/eui/pull/1559))
- Fixed `EuiComboBox` to allow keyboard tab to exit single selection box ([#1576](https://github.com/elastic/eui/pull/1576))

## [`7.1.0`](https://github.com/elastic/eui/tree/v7.1.0)

Expand Down
2 changes: 1 addition & 1 deletion src/components/combo_box/combo_box.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export class EuiComboBox extends Component {

case TAB:
// Disallow tabbing when the user is navigating the options.
if (this.hasActiveOption()) {
if (this.hasActiveOption() && this.state.isListOpen) {
e.preventDefault();
e.stopPropagation();
}
Expand Down

0 comments on commit 216c12e

Please sign in to comment.