Handle scrolling when router outlet is inside "overflow: scroll" #226
orenelbaum
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
React router also only seems to handle restoring the I suspect any other scrolling containers might need to be handled by app code. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When the
<Routes>
component is inside an element withoverflow: scroll
it messes up both the scroll to top behavior built into the router and the scroll restoration built into the browser. I'm suggesting adding a feature that handles this.You can see a demonstration of this here:
https://stackblitz.com/github/orenelbaum/solid-router-overflow-scroll-demo
https://github.com/orenelbaum/solid-router-overflow-scroll-demo
Beta Was this translation helpful? Give feedback.
All reactions