fisshy / react-scroll

React scroll component
https://github.com/fisshy/react-scroll/blob/master/README.md
MIT License
4.36k stars 437 forks source link

Possible issue scrolling to embedded elements #413

Open bendugan opened 4 years ago

bendugan commented 4 years ago

Not sure if this is expected behavior, but as of 1.7.16, scrollTo(element) is no longer scrolling to elements that are embedded in a scrolling container. It seems to work in 1.7.14.

I've created a plunker https://next.plnkr.co/edit/DJ03fFKbGltuw1IW?preview

D7 is one element of many in a scrolling container and it works fine. D8 and D9 are elements embedded within other elements, and scrolling to them does not work.

tirmey commented 4 years ago

I confirm this issue in latest version to date, 1.8.1.