Skip to content

How to log the hovered hit in react-instantsearch-dom autocomplete? #5291

Answered by Haroenv
duhaime asked this question in Q&A
Discussion options

You must be logged in to vote

This is actually a question for https://github.com/moroshko/react-autosuggest, as that's the library you use for the autocomplete. However, you can use onSuggestionHighlighted, as in this example: https://codesandbox.io/s/blazing-bash-bvgpt?file=/src/AutoComplete.js:1815-1892

for more info, see those docs: https://github.com/moroshko/react-autosuggest#on-suggestion-highlighted-prop

Replies: 0 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@duhaime
Comment options

@Haroenv
Comment options

Answer selected by duhaime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Library: React InstantSearch < 7 Issues in any of the react-instantsearch@6 packages
2 participants