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

feat(scrolltotop): add ScrollToTop component #1839

Merged
merged 1 commit into from
Dec 10, 2023

Conversation

TimBroddin
Copy link
Contributor

This PR scrolls the <main> container back to the top on a navigation change.

It currently does not implement back button scroll restoration. It might be a good idea to migrate to React Router 6 which has a component that does it all: https://reactrouter.com/en/main/components/scroll-restoration

@nurikk nurikk merged commit ab454fc into nurikk:dev Dec 10, 2023
2 of 3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants