Skip to content

Restore scroll position on page change #16

@JamesDonnelly

Description

@JamesDonnelly

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions