inertia: Scroll position is not reset on page visits

Versions:

  • @inertiajs/inertia version: 0.11.0
  • @inertiajs/inertia-vue3 version: 0.6.0

Describe the problem:

Scroll position should reset after navigation.

After updating to the latest version of Google Chrome, this is no longer the case.

Steps to reproduce:

  1. Update to the latest Chrome. The issue was observed in version 102.0.5005.63
  2. Scroll down from the top of the page
  3. Navigate using the Link component or manual visit
  4. Scroll position is kept even though preserveScroll is set to false or not set at all

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (3 by maintainers)

Most upvoted comments

Scroll position is still not reset in Firefox 108.0.2 and @inertiajs/inertia@0.11.1

Hey folks, I just deployed this fix as @inertiajs/inertia@0.11.1. It was fixed in #1099.

This is still a problem in Firefox 113 and @inertiajs/vue3": "^1.0.0