-
Notifications
You must be signed in to change notification settings - Fork 87
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
Switching pages after scrolled - end up at the top #31
Comments
Update - I fixed this with
Doesn't feel very clean but it works. I wonder if setting scroll to 0,0 is part of other routing projects 🤔 |
You make a good point. How about an afterNavigate hook?
It could also be a runtime option, though obviously less transparent and powerful. |
I don't see a reason why you wouldn't just lock it down in the framework. If the author wants to retain scroll position (can't come up with an example for this but hey, maybe someone else can), they could enable it. So |
I guess we could create an autoScrollToTop and set it to true by default. This way, if anyone is so inclined, they have the option to opt out. |
Should be fixed in the latest release. |
@jakobrosenberg This feature doesn't work on 1.0.1-53. |
@AlexanderBelkevich I'll have a look and get back to you. |
@AlexanderBelkevich This has been fixed in 1.0.1-54. |
@jakobrosenberg Awesome! Now it's working :) Thank you) |
If you switch pages on a website, you would expect to end up at the top (scroll position 0). This is currently not the case, the scroll position remains.
The text was updated successfully, but these errors were encountered: