mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] qweb: fix crash with ref an component in same slot
This commit is contained in:
committed by
Aaron Bohy
parent
7ffb9afbd9
commit
153f4379f4
@@ -1029,7 +1029,6 @@ export class QWebCompiler {
|
||||
const subCtx: Context = createContext(ctx);
|
||||
this.compileAST(ast.slots[slotName], subCtx);
|
||||
if (this.hasRef) {
|
||||
slot.signature = "ctx => node => {";
|
||||
slot.code.unshift(` const refs = ctx.__owl__.refs`);
|
||||
slotStr.push(`'${slotName}': ${name}(${ctxStr})`);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user