diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-07-09 12:31:47 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-07-09 12:32:05 +0300 |
commit | 5837c103f7dd30f5611cb180e610f3d3f316b6d0 (patch) | |
tree | 5137f3c9f0054b7419ec1fdb78dea40e402ffa70 /server | |
parent | 42ce49c1298d6574c56905011ccef8ebdae87927 (diff) | |
download | vaadin-framework-5837c103f7dd30f5611cb180e610f3d3f316b6d0.tar.gz vaadin-framework-5837c103f7dd30f5611cb180e610f3d3f316b6d0.zip |
Fix displaying Details when Grid is attached to DOM (#18390)
Change-Id: I74360c7a3f0c5798dbaa44ea06ea1585c4289449
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/data/RpcDataProviderExtension.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/src/com/vaadin/data/RpcDataProviderExtension.java b/server/src/com/vaadin/data/RpcDataProviderExtension.java index d291d509b2..b3c7972b52 100644 --- a/server/src/com/vaadin/data/RpcDataProviderExtension.java +++ b/server/src/com/vaadin/data/RpcDataProviderExtension.java @@ -1475,4 +1475,13 @@ public class RpcDataProviderExtension extends AbstractExtension { public DetailComponentManager getDetailComponentManager() { return detailComponentManager; } + + @Override + public void detach() { + for (Object itemId : ImmutableSet.copyOf(visibleDetails)) { + detailComponentManager.destroyDetails(itemId); + } + + super.detach(); + } } |