summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-07-02 15:43:02 +0300
committerGitHub <noreply@github.com>2018-07-02 15:43:02 +0300
commitaa5546133d5f93a465f36c93b14e7c9d87f4c0c5 (patch)
tree7870eb28fd21445ab3f56fa56355f924907eca16 /server
parent879caf3691074ce001d25d56c46df9b94bcc2f46 (diff)
downloadvaadin-framework-aa5546133d5f93a465f36c93b14e7c9d87f4c0c5.tar.gz
vaadin-framework-aa5546133d5f93a465f36c93b14e7c9d87f4c0c5.zip
Fix expanding an added TreeGrid node (#11018)
Fixes #9997
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/data/provider/DataCommunicator.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java b/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java
index 3df69d45f3..f5d2d087e6 100644
--- a/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java
+++ b/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java
@@ -665,7 +665,8 @@ public class DataCommunicator<T> extends AbstractExtension {
if (isAttached()) {
attachDataProviderListener();
}
- hardReset();
+ reset = true;
+ markAsDirty();
return filter -> {
if (this.dataProvider != dataProvider) {
@@ -764,16 +765,12 @@ public class DataCommunicator<T> extends AbstractExtension {
generators.forEach(g -> g.refreshData(item));
getUI().access(() -> refresh(item));
} else {
- getUI().access(this::hardReset);
+ reset = true;
+ getUI().access(() -> markAsDirty());
}
});
}
- private void hardReset() {
- reset = true;
- markAsDirty();
- }
-
private void detachDataProviderListener() {
if (dataProviderUpdateRegistration != null) {
dataProviderUpdateRegistration.remove();