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] Options list doesn't show when singleSelection and onCreateOption are set #3701

Closed
yuliacech opened this issue Jul 7, 2020 · 0 comments · Fixed by #3706
Closed
Assignees

Comments

@yuliacech
Copy link
Contributor

yuliacech commented Jul 7, 2020

Hi team,

I noticed an issue with the combo box options list not being shown when the user clicks inside the input field. The list will show eventually when the user starts typing the value in the input or if they click the "arrow down" icon on the right. I think that only happens when both props are set: singleSelection={{ asPlainText: true }} and onCreateOption.
Here is a minimal reproducible example: https://codesandbox.io/s/combobox-example-7bw9r?file=/index.js:442-481

Expected behaviour: the options list is shown when the user clicks inside the input field without having to type in any value. The same it works with singleSelection={false}

Here are 2 gifs to demonstrate:
options_list
options_list_bug

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