I have a popup list which is a div
that contains a vertical list of child div
s. I have added up/down keyboard navigation to change which child is currently highlighted.
Right now, if I press the down key enough times, the highlighted item is no longer visible. The same thing also occurs with the up key if the view is scrolled.
What is the right way in React to automatically scroll a child div
into view?
Just in case someone stumbles here, I did it this way
scrollIntoView
is native DOM feature linkIt will always shows
tracker
div