ankeetmaini / react-infinite-scroll-component

An awesome Infinite Scroll component in react.
https://react-infinite-scroll-component.netlify.com/
MIT License
2.89k stars 322 forks source link

Question: focus on the infinityScroll component on the page load #403

Open ihomp opened 4 months ago

ihomp commented 4 months ago

InfinityScroll in the scrollable element and has scrollableTarget="scrollableDiv"

      <div id="scrollableDiv">
          <InfiniteScroll
            scrollableTarget="scrollableDiv"
         >

how to focus on it on the load, so it will be scrollable by the pageDown

if tried useRef and focus(), tabIndex nothing helps.