]> source.dussan.org Git - vaadin-framework.git/commit
Fix updating Grid's item set when details rows are open. (#12231)
authorAnna Koskinen <Ansku@users.noreply.github.com>
Mon, 8 Mar 2021 11:18:11 +0000 (13:18 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Mar 2021 11:18:11 +0000 (13:18 +0200)
commit7eb9588359c28ed484bcaeb729fc54675601671a
treec8aeb6d5f6b323ad277fe2266e6e574461a23d1a
parentff41bba3d7d0d8c02570b8dfccb413295e091708
Fix updating Grid's item set when details rows are open. (#12231)

- Old details should close.
- New details should open.
- If some row has details in both old and new item set, the details row
contents should get updated.
- Updating details row contents should not break the positioning of the
rows and details below.

Fixes #12211
client/src/main/java/com/vaadin/client/connectors/grid/DetailsManagerConnector.java
client/src/main/java/com/vaadin/client/widget/escalator/RowContainer.java
client/src/main/java/com/vaadin/client/widgets/Escalator.java
client/src/main/java/com/vaadin/client/widgets/Grid.java
server/src/main/java/com/vaadin/ui/Grid.java
uitest/src/main/java/com/vaadin/tests/components/grid/GridDetailsUpdateItems.java [new file with mode: 0644]
uitest/src/main/java/com/vaadin/tests/widgetset/client/grid/EscalatorProxy.java
uitest/src/test/java/com/vaadin/tests/components/grid/GridDetailsUpdateItemsTest.java [new file with mode: 0644]