-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
feat(nuxt): allow dynamic scrollToTop
page meta
#21741
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
feat(nuxt): allow dynamic scrollToTop
page meta
#21741
Conversation
β Live Preview ready!
|
Beautiful π |
Really nice feature. I was wondering if passing both |
That would definitely be quite useful. Wdyt @danielroe |
I agree π |
Updated the PR @danielroe |
Great! Thank you; we'll slot this in for the 3.7 release β€οΈ |
scrollToTop
page meta
π Linked issue
#21738
β Type of change
π Description
This PR allows
scrollToTop
page meta to be a function besides a boolean. The function receives the destination route object as an argument.This will allow users to dynamically set
scrollToTop
based on the route's params, query string, or path.Resolves #21738
π Checklist