-
In this autocomplete app, users can highlight results with arrow keys or by hovering with their mouse. How can one log the focused/hovered hit when the user focuses on that hit? |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 3 replies
-
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 for more info, see those docs: https://github.com/moroshko/react-autosuggest#on-suggestion-highlighted-prop |
Beta Was this translation helpful? Give feedback.
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-1892for more info, see those docs: https://github.com/moroshko/react-autosuggest#on-suggestion-highlighted-prop