2021年5月7日星期五

Auto scroll after click action react-scroll

I am using react-scroll in react and i am trying to scroll the container div overflow-y after doing an action click in a button, but the function scrolls the body overflow not the container div. How can i do it?

The body has overflow: hidden, and the container div has overflow-y: scroll

https://stackoverflow.com/questions/67443990/auto-scroll-after-click-action-react-scroll May 08, 2021 at 12:06PM

没有评论:

发表评论