From 251ed2cbb633778d467e0a646ad6f87e3e8ca4bb Mon Sep 17 00:00:00 2001 From: Henrik Paul Date: Fri, 13 Mar 2015 11:32:30 +0200 Subject: Fixes a bug in Details being open on freshly retrieved Grid rows (#16644) Change-Id: Id337dd84ba0b0f09d55b3cdb0d8bfde67313ed21 --- server/src/com/vaadin/data/RpcDataProviderExtension.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server/src/com/vaadin/data') diff --git a/server/src/com/vaadin/data/RpcDataProviderExtension.java b/server/src/com/vaadin/data/RpcDataProviderExtension.java index 62b8214cbd..620933c379 100644 --- a/server/src/com/vaadin/data/RpcDataProviderExtension.java +++ b/server/src/com/vaadin/data/RpcDataProviderExtension.java @@ -156,7 +156,10 @@ public class RpcDataProviderExtension extends AbstractExtension { } indexToItemId.forcePut(index, itemId); - detailComponentManager.createDetails(itemId, index); + + if (visibleDetails.contains(itemId)) { + detailComponentManager.createDetails(itemId, index); + } } index++; } -- cgit v1.2.3