Closed tarangdave closed 7 years ago
Could you share a repo with your issue??
I´m affraid this will not work cause what is scrolled is the top document container not a individual component or div. This is implemented on top of document.documentElement
or document.body
scrollTop, a browser use case.
See src: https://github.com/bySabi/react-scrollchor/blob/master/src/utils.js#L3
Ohk I get it. So in my case what would you suggest? Any other libs, within your knowledge, that would satisfy my purpose.
Sorry! I don´t know any React package that do that out of box. Never need something like this.
closed due inactivity
When the entire component is rendered on the browser screen the Scrollchor with #id works, but when the same component is kept in a div with
overflow: scroll
property in parent div it doesn't work. I had the same issue withreact-scroll
Link. They mentioned thatreact-scroll
won't work inside a div. Is this the same issue withreact-scrollchor
?