-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Vue 2 router scrollBehavior not working for layout views #161
Comments
I will make a statement soon about Vue Router's "history" mode. There are some technical limitations that cannot be currently overcome, the most important one being you can't build with history mode for Cordova. |
You will understand why. It's logical. |
You will be able to use history mode for websites only though. I'll write a directive for the scroll behavior which will work in both history and hash mode. |
Thanks @rstoenescu, cordova apps are not my main concern. Specially with progressive apps coming… 😉 |
Then you'll be good ;) There's a progressive app starter kit on the todo list for Quasar. |
I noticed that. Can't wait! 😄 |
Will update the default starter kit today ("v2") with some improvements for when using history mode. Make sure you update Quasar CLI too to generate a project and check it out. |
Will do. Will the changes in the template be easy to see so I can just modify my current project or is a start from scratch + pasting code from current project a better option? |
If you haven't touched the |
Great! |
Check it now. Commit: quasarframework/quasar-template-default@6d3980f |
I overwrote Don't you think this issue should be re-opened, waiting for the directive? If this is not a bug, at least with a "feature" flag… |
Not reopening as this will duplicate: #72 |
Ah I didn't know #72 . Ok then. |
I found this that works just fine The only issue with is that you cannot use transitions as the page jump immediately to the stored position. I hope it helps |
In
history
mode, Vue 2 routerscrollBehavior
is only working for "top" components not using layout.@rstoenescu should I open an issue about
scrollBehavior
and nested routes directly on vue-router or do you think it's on the Quasar side?The text was updated successfully, but these errors were encountered: