mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
allow new widgets to be mount in mounted hook
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user