Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
evgenyfadeev opened this issue Jan 17, 2023 · 0 comments

Comments

@evgenyfadeev
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant