Scroll Restoration for nested scrolling in divs #10284
Unanswered
lucasrothman
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a layout with a fixed sidebar and header, and then main content in a div that scrolls. When I click links to other pages, the scroll position on the main content isn't reset to the top.
I see this discussion remix-run/react-router#9495 about pretty much exactly the issue I'm running into. Is there a fix other than creating a patch or a better way to handle this? I can imagine a lot of web apps have fixed layouts with nested divs that scroll.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions