I have a custom searcher in my React js app, and I need to focus an element of the search results (so I can navigate with arrow keys) leaving the input focused as well so I can continue writing.
thanks
I recommend you to simulate what you want. Add keydown event listeners to input. And then see what is pressed. If it is allowed symbol then add this symbol to inputs actual value. If it is arrow, then add a specific class to need search item (f.e. focused-search-item) and add little another style rules. And when you press enter then get the "focused" element and simulate click event on it