diff options
author | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2018-05-04 14:53:21 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2018-05-16 07:43:56 +0300 |
commit | b6d5d0cac8a9ae2f99ef7fdc34d8e53353fcf84b (patch) | |
tree | 381e53277d0f9a374831713201b427080b06c0b5 /server | |
parent | b9f0aae9e493c015e107a88ef4a9d9f329edf3ab (diff) | |
download | vaadin-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.java | 5 |
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 |