diff options
author | Anna Koskinen <Ansku@users.noreply.github.com> | 2020-10-06 11:43:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-06 11:43:33 +0300 |
commit | 2e8b9d2b5b40652321aaa9d2bb2dba1041da7fc4 (patch) | |
tree | d0254634eada633a92cc5abc6613f70ce2408958 /client/src/main/java | |
parent | a94403277111f0d43a82cd667d6a0277934d15fb (diff) | |
download | vaadin-framework-2e8b9d2b5b40652321aaa9d2bb2dba1041da7fc4.tar.gz vaadin-framework-2e8b9d2b5b40652321aaa9d2bb2dba1041da7fc4.zip |
Open details rows shouldn't get removed when a new row is added to Grid (#12109)7.7.22
Fixes: #12106
Diffstat (limited to 'client/src/main/java')
-rwxr-xr-x | client/src/main/java/com/vaadin/client/widgets/Grid.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/client/src/main/java/com/vaadin/client/widgets/Grid.java b/client/src/main/java/com/vaadin/client/widgets/Grid.java index 6ed2e78b27..ebf5c8ca96 100755 --- a/client/src/main/java/com/vaadin/client/widgets/Grid.java +++ b/client/src/main/java/com/vaadin/client/widgets/Grid.java @@ -7311,12 +7311,6 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>, RowContainer body = escalator.getBody(); int oldSize = body.getRowCount(); - // Hide all details. - Set<Integer> oldDetails = new HashSet<>(visibleDetails); - for (int i : oldDetails) { - setDetailsVisible(i, false); - } - if (newSize > oldSize) { if (oldSize == 0 && !isHeaderVisible()) { // Fixes framework/issues/11607 |