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
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
Versions