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

It does not scroll correctly #40

Open
justinecomment opened this issue Mar 13, 2018 · 3 comments
Open

It does not scroll correctly #40

justinecomment opened this issue Mar 13, 2018 · 3 comments

Comments

@justinecomment
Copy link

Hi there!

i've tried to use it on two different components, a menu and the other components (which contains the anchors) When i click on the menu nothing happens however the URL is correctly modified. if I let it as localhost/#item and refresh the browser it correctly scrolls down to the element.

Any idea how I can fix this?

@awitherow
Copy link

Do you have the code available, or a demo?

@jskrt
Copy link

jskrt commented Jun 4, 2018

I am experiencing the same issue. The url is being updated (most likely due to HTML/React itself) but no scrolling is taking place.

Relevant code: https://paste.ofcode.org/38s55GyB4baHePvBbh73GBy

React version: 6.1.0
I'm working in a Gatsby project. Not sure if that has anything to do with it.

@jskrt
Copy link

jskrt commented Jun 5, 2018

Fixed. Wrap content in a div to make it work properly.

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

3 participants