-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Not scrolling to top on navigation (Firefox, scroll-behavior: smooth) #9515
Comments
The If the |
As I expected, switching from |
Thanks for your contribution to Nuxt!
Issues that are labeled as |
I can confirm this bug still occurs.
|
I thought I was going crazy, Works on chrome.
|
Still not working for me on Firefox.
|
Still not fixed in 2024 |
We are approaching the Nuxt 2 EOL date (June 30, 2024) - see this article for more information. This is advance warning that I'm going to close this issue then, as it's currently marked as a Nuxt 2 related bug. If it's a critical or security issue, please do comment and let me know, in case it is possible to address it before the EOL date. If it's a an issue you think is relevant for Nuxt 3, please feel free to open a fresh issue (or just comment here so I can update labels, etc.). 🙏 Thank you for your understanding and for your contribution to Nuxt. ❤️ |
It's the day, at last. Nuxt 2 is now marked end-of-life. My apologies we never got round to resolving this bug in the 2.x branch, but we do have to draw a line somewhere. Again, if you think this is still relevant for Nuxt going forward, please feel free to open a fresh issue (or just comment here so I can update labels, etc.). 🙏 |
Reporting the same issue in Nuxt 3. In our project we have footer element with various NuxtLinks that lead to different pages when clicking on them. When navigating through the links inside footer we experience the same issue described above. This issue is more visible on Firefox however it is also reproducible on Chrome and Safari browser. When navigating through routes Firefox is forcefully scrolling to the bottom of the page instead of the top of the page. Browser versions: Node version: v20.12.2 |
@JovanaMatic Would you raise a new issue with a reproduction? 🙏 |
Hi @danielroe opened a new issue - #28227. Thanks! |
Minimal reproducible code example
package.json
:nuxt.config.js
:layouts/default.vue
:pages/index.vue
:pages/other-page.vue
:components/MyComp.vue
:Steps to reproduce
start dev server
open the index page (eg.
http://localhost:3000/
) in Firefoxscroll to the bottom of the index page
click the navigation button (pointing to
/other-page/
route)on the new route, the page does not scroll to the top as expected
Versions
v2.15.7
v14.15.4
Firefox 89.0.2 (64-Bit)
scroll-behavior: smooth
The text was updated successfully, but these errors were encountered: