Skip to content

scrollBehavior does not run on load #3196

Closed
@Calvin-LL

Description

@Calvin-LL

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 top

What is actually happening?

scrollBehavior always return { x: 0, y: 200 } but scroll position y is always 0 when first loaded

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions