-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Handle scrollBehaviour with transitions #1263
Comments
Would supporting a returned promise here be enough to support most cases where there is a transition etc? |
I've had a go at this, check out this commit. It could be improved, if there were away to obtain the transition duration from the route object for example. Would love to get some thoughts/input @posva @atinux @pi0 @yyx990803 |
I forgot to add this can be handled with https://github.com/posva/vue-router-view-transition |
Vue.js / vue-router versions
2.1.2 / 2.1.1
Reproduction Link
http://jsfiddle.net/qw4hbgek/
Problem
Clicking on Home, then on post1 will not scroll down because of the transition
Feature request
We should at least provide a way of doing it userland in the docs. Ideally, scrollbehaviour should trigger once the new view is inserted into the dom
The text was updated successfully, but these errors were encountered: