Vue 2 router scrollBehavior not working for layout views
See original GitHub issueIn history
mode, Vue 2 router scrollBehavior
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?
Issue Analytics
- State:
- Created 7 years ago
- Comments:15 (14 by maintainers)
Top Results From Across the Web
Scroll behaviour VueJS not working properly - Stack Overflow
scrollBehavior happens at the same time. The anchor is not found, so no scrolling; Transition is over, <router-view> correctly mounted/rendered.
Read more >Scroll Behavior | Vue Router
When using client-side routing, we may want to scroll to top when navigating to a new route, or preserve the scrolling position of...
Read more >Getting Started - Vue Router
Creating a Single-page Application with Vue + Vue Router feels natural: with Vue.js, ... router-view will display the component that corresponds to the...
Read more >Nested Routes | Vue Router
With Vue Router, you can express this relationship using nested route ... will be rendered inside User 's router-view , because no nested...
Read more >Named Views - Vue Router
Sometimes you need to display multiple views at the same time instead of nesting them, e.g. creating a layout with a sidebar view...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Check it now. Commit: https://github.com/quasarframework/app-template-v2/commit/6d3980fdef99618ea609a1cc57867fdc570a2899