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

Restore scroll position on page change #16

Open
JamesDonnelly opened this issue May 28, 2018 · 0 comments
Open

Restore scroll position on page change #16

JamesDonnelly opened this issue May 28, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@JamesDonnelly
Copy link
Member

With React Router v4, page changes remain scrolled to the position the top-level component was last scrolled to. A workaround is to add a <ScrollToTop> component as documented in https://reacttraining.com/react-router/web/guides/scroll-restoration.

@JamesDonnelly JamesDonnelly added the enhancement New feature or request label May 28, 2018
@JamesDonnelly JamesDonnelly self-assigned this May 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant