Skip to content
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

Scroll restoration issue #1922

Closed
mrleblanc101 opened this issue Jul 14, 2024 · 3 comments
Closed

Scroll restoration issue #1922

mrleblanc101 opened this issue Jul 14, 2024 · 3 comments
Labels
bug Something isn't working core Related to the core Inertia library

Comments

@mrleblanc101
Copy link

Version:

  • @inertiajs/vue3 version: 1.2.0

Describe the problem:

If you click on a link at the bottom of a page, then use any mean to go to the previous page (back button, trackpad gesture, history.back()), the scroll position is not always properly restored.

As you can see in this exemple, the first back does not restore the correct position, but the second back does.
2024-07-13 22 20 50

Steps to reproduce:

Here is the website where you can reproduce the issue: https://tee-time.ca/search?city_id=65&date=2024-07-14
If the is no results, try changing the date in the top-left corner.

@mrleblanc101
Copy link
Author

mrleblanc101 commented Jul 14, 2024

Probably relates to #1816

@benjivm
Copy link

benjivm commented Jul 16, 2024

Same as #1698 does not appear to affect Chrome, at least in my testing and repro repo.

@pedroborges
Copy link
Collaborator

Fixed by #1980

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core Related to the core Inertia library
Projects
None yet
Development

No branches or pull requests

3 participants