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

EuiComboBox returns focus to input when trying to tab away #1857

Closed
cjcenizal opened this issue Apr 18, 2019 · 4 comments · Fixed by #1863
Closed

EuiComboBox returns focus to input when trying to tab away #1857

cjcenizal opened this issue Apr 18, 2019 · 4 comments · Fixed by #1863
Assignees
Labels

Comments

@cjcenizal
Copy link
Contributor

In the "Disallowing custom options" example, if you enter "Dione" and then tab out of the combobox, the option becomes a pill but focus is returned to the input.

combo_box

@cjcenizal cjcenizal added the bug label Apr 18, 2019
@theodesp
Copy link
Contributor

theodesp commented Apr 19, 2019

EuiComboBox likes to make us busier... 😦

Screen Shot 2019-04-19 at 10 48 18

@thompsongl
Copy link
Contributor

This looks to be intentional behavior:

// If the user tabs away or changes focus to another element, take whatever input they've
// typed and convert it into a pill, to prevent the combo box from looking like a text input.
if (!this.hasActiveOption()) {
this.addCustomOption();
}

@chandlerprall wrote the comment, so he may have insight. Seems like something that could be optional, though

@chandlerprall
Copy link
Contributor

Tabbing away should select the active option; however, it shouldn't re-focus back into the combo box.

@thompsongl
Copy link
Contributor

Yep. Just re-read the actual message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants