Skip to content

Grid scroll position changes when leaving and reentering the browser window #8862

@olaf-2

Description

@olaf-2

Describe the bug

We use a Vaadin Grid with item details. When a details pane is opened and the user switched to another tab and comes back to the browser window with the grid the scroll position of the grid changes, apparently putting the last focus to the top of the grid. Since our details have quite a large height the users get somewhat lost in the grid searching their last position..

Expected-behavior

Keep the scroll position at the position before leaving the browser window.

In case this is a feature and not a bug: is there a way to disable it?

Maybe related to vaadin/flow-components#5088

Reproduction

Screencast.From.2025-03-26.08-47-58.webm

System Info

Vaadin Hilla 24.7.0 on Linux, Windows, Chrome, Firefox, ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions