[FIX] qweb: fix crash with ref an component in same slot

This commit is contained in:
Samuel Degueldre
2021-11-10 09:13:17 +01:00
committed by Aaron Bohy
parent 7ffb9afbd9
commit 153f4379f4
4 changed files with 55 additions and 2 deletions
-1
View File
@@ -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 {