-
Notifications
You must be signed in to change notification settings - Fork 13.5k
bug: Scroll position not restored when navigating back #29578
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
Comments
We are also getting this. |
This is also happening to me. |
Thank you for submitting this issue! I was able to replicate this in v8. It was working in v7 so this can be considered a regression. We will look into this further. |
Hello @thetaPC, any news regarding this issue? It's starting to fall way behind in the backlog, and I don't want this issue to be forgotten 😅 |
@Julien-Marcou No updates on this one just yet, but we haven’t forgotten about it. We recommend subscribing to the issue so you’ll get notified as soon as there’s any news. |
Hello, I am facing the same issue in Ionic v7 with a persistent ion-menu. When I navigate back from the details page to the list page, the scroll position is not restored, and I end up at the top of the list. Interestingly, the same behavior works fine in another app where I use tab-based navigation. Could this issue be related to ion-menu? |
Prerequisites
Ionic Framework Version
v8.x
Current Behavior
Scroll position is not restored when I navigate back to the previous page, it scrolls me to the top of the page
It's really annoying when you want to open the details of an item, then go back, then want to open another item details, etc...
Expected Behavior
In v7 of Ionic, it would keep the previous scroll position, so that navigating back and forth between pages was smooth
Steps to Reproduce
I forked the stackblitz demo of https://ionicframework.com/docs/api/nav#using-navlink and just added some fake content so that the page are tall enough to be scrollable.
Steps:
It was not the case in Ionic v7
Code Reproduction URL
https://stackblitz.com/edit/ultfxy?file=index.html
Ionic Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: