react-scroll icon indicating copy to clipboard operation
react-scroll copied to clipboard

How to scroll to an element defined in dependency (installed in node_modules)?

Open evgenyfadeev opened this issue 3 years ago • 0 comments

Hi, I have an <Element name='somename'>...</Element> defined in a library.

And In the project using this library - scroller.scrollTo('somename', { smooth: true, duration: 500 })

Scrolling is not working - there is a warning in the browser that the scrolling target cannot be found (even though it is rendered).

Is there a way to resolve this with react-scroll?

evgenyfadeev avatar Jan 17 '23 16:01 evgenyfadeev