Skip to content

Vaadin 24 resets scroll position after rebinding components #24053

@sebastian-gehr

Description

@sebastian-gehr

Description of the bug

After a save operation, the UI logic clears all components from a scroll container and adds them again with a fresh binding. This causes the scroll position of the container to be not retained correctly.

Expected behavior

The scroll position should be retained after save operation and refreshing the content.

Minimal reproducible example

  • Open a view containing a vertically scrollable component container.
  • Scroll down within that container.
  • Trigger a save action.
  • During save handling, remove all components from the container.
  • Re-add the components with new bindings.
  • Observe the scroll position after the update.

Versions

  • Vaadin / Flow version: 24.10.0
  • Vaadin-CDI version: 15.2.1
  • Java version: 17.0.16 aarch64
  • OS version: macOS 26.3.1
  • Browser version (if applicable): Firefox 149.0
  • Application Server (if applicable): Tomcat 10.1.50

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🆕 Needs triage

    Status

    🪵Product backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions