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
I realized that scrollBehavior is ignored when <router-view /> is placed within <transition> (router v2.2.0, Chrome browser; it seems that works in Safari).
Example:
<!-- Main App Component --><template><divclass="app"><transition><router-view/></transition></div></template>
In the code above I set scrollBehavior to always scroll to the top when a new page is pushed into history and when you go back the scroll is preserved. It works without the <transition> block.
The text was updated successfully, but these errors were encountered:
This solution to work for me when not using any transition modes, but when using mode="out-in", it doesn't seem to work. Any ideas?
Edit:
Nevermind, it works regardless with or without min-height when not using a mode, however when using specifically out-in mode, it does not work at all.
Edit 2: Just realized this is covered in #1263. Sorry about the ping!
removing mode="out-in" worked for me as well! And didn't get any unexpected behaviour trough this yet. Thank you @devmattrick! Was freaking out not being able to get the source of the bug...
I realized that
scrollBehavior
is ignored when<router-view />
is placed within<transition>
(routerv2.2.0
, Chrome browser; it seems that works in Safari).Example:
In the code above I set
scrollBehavior
to always scroll to the top when a new page is pushed into history and when you go back the scroll is preserved. It works without the<transition>
block.The text was updated successfully, but these errors were encountered: