mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
wip
This commit is contained in:
@@ -20,7 +20,12 @@ function callPortal(
|
||||
target: string,
|
||||
content: (ctx: any, node: any, key: string) => BDom
|
||||
): BDom {
|
||||
return new VPortal(target, content(ctx, parent, key)) as any;
|
||||
const portal = new VPortal(target, content(ctx, parent, key)) as any;
|
||||
// make sure we cleanup only once
|
||||
if (!ctx.__owl)
|
||||
ctx.__owl__.willDestroy.push(() => portal.cleanup());
|
||||
ctx.__owl__.hasPortal = true;
|
||||
return portal;
|
||||
}
|
||||
|
||||
function callSlot(
|
||||
|
||||
Reference in New Issue
Block a user