mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
fix issue with mounted widget without proper vnode
This commit is contained in:
@@ -133,8 +133,9 @@ export class Widget<T extends WEnv> {
|
||||
return Promise.all(promises).then(() => vnode);
|
||||
}
|
||||
|
||||
_mount(el: HTMLElement) {
|
||||
this.el = el;
|
||||
_mount(vnode: VNode) {
|
||||
this.el = <HTMLElement>vnode.elm;
|
||||
this._.vnode = vnode;
|
||||
if (this._.parent) {
|
||||
if (this._.parent._.isMounted) {
|
||||
this._.isMounted = true;
|
||||
|
||||
Reference in New Issue
Block a user