allow new widgets to be mount in mounted hook

This commit is contained in:
Géry Debongnie
2019-01-24 22:17:06 +01:00
parent dbada21890
commit c1dd38bf03
2 changed files with 31 additions and 2 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ export class Widget<T extends WEnv> {
if (document.body.contains(target)) {
this.visitSubTree(w => {
if (!w.isMounted) {
if (!w.isMounted && this.el!.contains(w.el)) {
w.isMounted = true;
w.mounted();
}