I have a search box and search result. on keypress the mouse cursor moves but it goes beyond the searchresult container without moving the list. So I want to know how can I scroll the list along with the cursor.
after lot of research, I have come to understand that it can be achieved using refs but I don’t understand them well.
i have tried this code and it moves the entire page while I need to move just search results
Note : I am not using any library. Just building from scratch.