-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Disable scroll to top when clicking back button on a Jio Card #220
Comments
This issue has been linked to a Canny post: Disable scroll to top when clicking back button on a Jio Card 🎉 |
Also, don't clear search filters if the user enter the Jio Card with search filters active and click back button |
Hey @therizhao I'm seeing a hardcoded logic to always scroll to top on every page change, may I ask what was the intention for it? |
Hello @wgao19 ! Thanks for getting started! Scroll to top should be there for certain page navigation. E.g. Going from Betas tab to Jios tab. But it shouldn't be for all. E.g. Going to user's profile and clicking the back button. Currently well don't have a granular control for this and we default to scroll to top for all pages. This issue should fix this behavior. Perhaps by having some way of controlling if user should scroll to top on navigation. |
@therizhao IMO I'd rather my scroll position be retained if I swap to different tabs, etc. if I was watching a beta video I found after scrolling a while, I wouldn't want the page to refresh and scroll to the top if I accidentally switch tabs. |
for now, since all the dependencies of |
can use but still need to retain scroll position. |
https://climbjios.canny.io/admin/board/feedback/p/disable-scroll-to-top-when-clicking-back-button-on-a-jio-card
The text was updated successfully, but these errors were encountered: