aboutsummaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2013-02-19 16:07:46 +0200
committerVaadin Code Review <review@vaadin.com>2013-02-19 14:16:24 +0000
commitf6e3039d313aaab8c16725acea12b9ec429ba6f2 (patch)
treef296a1029da207003cee8019ddf51d06c1f4a034 /client/src
parent41e55b6e3887556be5c68ae0bceb65d6091140ac (diff)
downloadvaadin-framework-f6e3039d313aaab8c16725acea12b9ec429ba6f2.tar.gz
vaadin-framework-f6e3039d313aaab8c16725acea12b9ec429ba6f2.zip
Revert merge from 6.8 fixing #8238 since it was causing issues like #11026. Should be fixed in another way. (no-merge)
Change-Id: I232f55781daf7ab5137f9602d3a3c6c2020c6064
Diffstat (limited to 'client/src')
-rw-r--r--client/src/com/vaadin/client/ui/tabsheet/TabsheetBaseConnector.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ui/tabsheet/TabsheetBaseConnector.java b/client/src/com/vaadin/client/ui/tabsheet/TabsheetBaseConnector.java
index 9944ec5308..283bc1b63b 100644
--- a/client/src/com/vaadin/client/ui/tabsheet/TabsheetBaseConnector.java
+++ b/client/src/com/vaadin/client/ui/tabsheet/TabsheetBaseConnector.java
@@ -89,6 +89,14 @@ public abstract class TabsheetBaseConnector extends
}
}
+ // Detach any old tab widget, should be max 1
+ for (Iterator<Widget> iterator = oldWidgets.iterator(); iterator
+ .hasNext();) {
+ Widget oldWidget = iterator.next();
+ if (oldWidget.isAttached()) {
+ oldWidget.removeFromParent();
+ }
+ }
}
@Override