aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-05-04 14:53:21 +0300
committerIlia Motornyi <elmot@vaadin.com>2018-05-04 14:53:21 +0300
commit7aa9c79617009e6b33b710873ebdbddd9b91a463 (patch)
treea1bc5db9f27f32aeabb00104855841f592c71a37 /server
parenta50b5d5fcd55fe0bf0241c77d040ebfd65baa233 (diff)
downloadvaadin-framework-7aa9c79617009e6b33b710873ebdbddd9b91a463.tar.gz
vaadin-framework-7aa9c79617009e6b33b710873ebdbddd9b91a463.zip
Fix Grid initial data when changing TabSheet Tab (#10872)
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/data/provider/DataCommunicator.java5
1 files changed, 5 insertions, 0 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 99201965f1..574ed99045 100644
--- a/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java
+++ b/server/src/main/java/com/vaadin/data/provider/DataCommunicator.java
@@ -220,6 +220,11 @@ public class DataCommunicator<T> extends AbstractExtension {
public void attach() {
super.attach();
attachDataProviderListener();
+
+ if (getPushRows().isEmpty()) {
+ // Make sure rows are pushed when component is attached.
+ setPushRows(Range.withLength(0, getMinPushSize()));
+ }
}
@Override