You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[EuiSuggest] Down Arrow Key to Select Suggestions and Callback #4419
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.
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.
EuiComboBox and EuiSelectable both have autocomplete-like search behavior. EuiSelectable is likely the best starting point for building something custom.
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?
👋 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.
👋 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.
Activity
thompsongl commentedon Jan 13, 2021
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 commentedon Jan 14, 2021
Would have any suggestions for components to use for building an Autocomplete?
thompsongl commentedon Jan 14, 2021
EuiComboBox and EuiSelectable both have autocomplete-like search behavior. EuiSelectable is likely the best starting point for building something custom.
valayDave commentedon Jan 14, 2021
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 commentedon Jan 15, 2021
Looks like some changes would need to be made to support full external control of the search field.
valayDave commentedon Jan 15, 2021
The EuiCombo Box worked better for my Usecase. Thanks a lot for the help :)
github-actions commentedon Jul 15, 2021
👋 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 commentedon Jan 11, 2022
👋 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 commentedon Jan 11, 2022
Still relevant, but will be closed when #5157 merges.