summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAnna Koskinen <Ansku@users.noreply.github.com>2020-10-06 11:43:33 +0300
committerGitHub <noreply@github.com>2020-10-06 11:43:33 +0300
commit2e8b9d2b5b40652321aaa9d2bb2dba1041da7fc4 (patch)
treed0254634eada633a92cc5abc6613f70ce2408958 /client
parenta94403277111f0d43a82cd667d6a0277934d15fb (diff)
downloadvaadin-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')
-rwxr-xr-xclient/src/main/java/com/vaadin/client/widgets/Grid.java6
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