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
* Add handleScroll on initial history.transitionTo
* Update index.js
* test(scroll-behavior): add tests for scrollBehavior on load
* refactor(scroll-behavior): scrollBehavior on load
* style: remove spaces
* fix: handleScroll not called with from
* test(scroll-behavior): remove redundant tests
* fix: call handleScroll only if initial navigation succeeds
Co-authored-by: Eduardo San Martin Morote <posva13@gmail.com>
Version
3.1.6
Reproduction link
https://codesandbox.io/s/vue-routing-example-pk4q2
Steps to reproduce
Load page
What is expected?
scrollBehavior always return
{ x: 0, y: 200 }
so the scroll position should always be 200 pixels from the topWhat is actually happening?
scrollBehavior always return
{ x: 0, y: 200 }
but scroll position y is always 0 when first loadedThe text was updated successfully, but these errors were encountered: