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

[EuiSuggest] Down Arrow Key to Select Suggestions and Callback #4419

Closed
valayDave opened this issue Jan 11, 2021 · 9 comments · Fixed by #5157
Closed

[EuiSuggest] Down Arrow Key to Select Suggestions and Callback #4419

valayDave opened this issue Jan 11, 2021 · 9 comments · Fixed by #5157

Comments

@valayDave
Copy link

Hello,

I was using EuiSuggest as a part of an auto-complete I was building. Wanted to check on how I can capture DownArrow press and go down the list of suggestions to select things. Any Ideas would be appreciated.

@thompsongl
Copy link
Contributor

Hello, it is not currently possible to implement custom key handling in the suggestion list like you note. #4345 and other issues linked therein track known navigation troubles, and we'll be refactoring the component to address them some time in the future.

@valayDave
Copy link
Author

Would have any suggestions for components to use for building an Autocomplete?

@thompsongl
Copy link
Contributor

EuiComboBox and EuiSelectable both have autocomplete-like search behavior. EuiSelectable is likely the best starting point for building something custom.

@valayDave
Copy link
Author

Thank you for the quick responses. I was trying to find a way to clear the text box of the EuiSelectable on an event I wired up. Checked the documentation many times but couldn't find hooks on a way to do that. Do you think the current framework can support this?

@thompsongl
Copy link
Contributor

clear the text box of the EuiSelectable on an event I wired up

Looks like some changes would need to be made to support full external control of the search field.

@valayDave
Copy link
Author

The EuiCombo Box worked better for my Usecase. Thanks a lot for the help :)

@github-actions
Copy link

👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

@github-actions
Copy link

👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

@thompsongl
Copy link
Contributor

Still relevant, but will be closed when #5157 merges.

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

Successfully merging a pull request may close this issue.

3 participants