Skip to content

Scroll position is not preserved after a page reload #2681

@sebbayer

Description

@sebbayer

Since 4.6.0, the scroll position is no longer preserved on a page reload in Chrome and Firefox.

Reproduction

Not really possible on Vue SFC Playground because of the iframe. Use pnpm play in this repo instead.

Steps to reproduce the bug

Scroll down the page and reload it.

Expected behavior

Scroll position should be preserved after the reload.

Actual behavior

After the reload the page is scrolled back to the top.

Additional information

I created #2680 to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions