aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorDenis Anisimov <denis@vaadin.com>2014-04-06 18:10:37 +0300
committerVaadin Code Review <review@vaadin.com>2014-04-10 16:47:40 +0000
commit013d32d60b7b80f9501e8e4479f4d3b6ce97ae19 (patch)
tree740cedeffebbdedf764c89ff10a045490bbb24fa /client
parentca90352bf4cb737512cfe01240fcf1e09283a0e3 (diff)
downloadvaadin-framework-013d32d60b7b80f9501e8e4479f4d3b6ce97ae19.tar.gz
vaadin-framework-013d32d60b7b80f9501e8e4479f4d3b6ce97ae19.zip
Remove old widget from tab content on replace (#12931).
Change-Id: I85badfcca18e129b20ab6c5c2db0b845c8c2ea5b
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ui/VAccordion.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ui/VAccordion.java b/client/src/com/vaadin/client/ui/VAccordion.java
index cba08d8e6b..d348e6863b 100644
--- a/client/src/com/vaadin/client/ui/VAccordion.java
+++ b/client/src/com/vaadin/client/ui/VAccordion.java
@@ -277,6 +277,7 @@ public class VAccordion extends VTabsheetBase {
public void replaceWidget(Widget newWidget) {
if (getWidgetCount() > 1) {
Widget oldWidget = getWidget(1);
+ remove(oldWidget);
widgets.remove(oldWidget);
}
add(newWidget, content);