Scroll behaviour when the app div is not scrollable #1683
Unanswered
Bibalox
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I've been trying to scroll to top while navigating to a new route, as explained in the doc.
In my project, the overflow is not managed on my app div, but on a child one. Unfortunately, this seems to break the behaviour described in the doc.
I've seen a workaround which gets the concerned div with
getElementById
and force its scroll position withscrollTop
within the scrollBehavior() function but it doesn't seem to be a clean solution.Do you guys have any idea about how to do this properly?
Beta Was this translation helpful? Give feedback.
All reactions