Skip to content

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

Closed

Description

@valayDave

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.

Activity

  1. thompsongl commented on Jan 13, 2021

    @thompsongl
    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.

  2. valayDave commented on Jan 14, 2021

    @valayDave
    Author

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

  3. thompsongl commented on Jan 14, 2021

    @thompsongl
    Contributor

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

  4. valayDave commented on Jan 14, 2021

    @valayDave
    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?

  5. thompsongl commented on Jan 15, 2021

    @thompsongl
    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.

  6. valayDave commented on Jan 15, 2021

    @valayDave
    Author

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

  7. github-actions commented on Jul 15, 2021

    @github-actions

    👋 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.

  8. added
    stale-issue
    on Jul 15, 2021
  9. removed
    stale-issue
    on Jul 15, 2021
  10. github-actions commented on Jan 11, 2022

    @github-actions

    👋 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.

  11. added
    stale-issue
    on Jan 11, 2022
  12. thompsongl commented on Jan 11, 2022

    @thompsongl
    Contributor

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

  13. removed
    stale-issue
    on Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions