You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the style scroll-behavior: smooth is applied, navigation to new pages doesn't scroll to top in Firefox.
The issue is that awaiting nextTick in router.options.ts doesn't actually always play nice with Firefox for some reason, I'll open a PR for this shortly since I found a straightforward fix.
Additional context
#19239 discusses this in detail (and many other issues throughout the life of Nuxt). The issue does exist in vue-router, (reproduced in stackblitz). However, vue router seems to have the issue (when reproduced this way) regardless of whether the style includes scroll-behavior: smooth or not. Since there's an easy fix on Nuxt's side (pr), I think it's worth fixing it.
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Firefox 122.0.1
Reproduction
stackblitz reproduction
Describe the bug
When the style
scroll-behavior: smooth
is applied, navigation to new pages doesn't scroll to top in Firefox.The issue is that awaiting
nextTick
in router.options.ts doesn't actually always play nice with Firefox for some reason, I'll open a PR for this shortly since I found a straightforward fix.Additional context
#19239 discusses this in detail (and many other issues throughout the life of Nuxt). The issue does exist in vue-router, (reproduced in stackblitz). However, vue router seems to have the issue (when reproduced this way) regardless of whether the style includes
scroll-behavior: smooth
or not. Since there's an easy fix on Nuxt's side (pr), I think it's worth fixing it.Logs
No response
The text was updated successfully, but these errors were encountered: