summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-05-04 14:53:21 +0300
committerTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-05-16 07:43:56 +0300
commitb6d5d0cac8a9ae2f99ef7fdc34d8e53353fcf84b (patch)
tree381e53277d0f9a374831713201b427080b06c0b5 /server
parentb9f0aae9e493c015e107a88ef4a9d9f329edf3ab (diff)
downloadvaadin-framework-b6d5d0cac8a9ae2f99ef7fdc34d8e53353fcf84b.tar.gz
vaadin-framework-b6d5d0cac8a9ae2f99ef7fdc34d8e53353fcf84b.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