mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] compiler: t-key on a sub-domnode pushes an anchor in parent block
This commit is contained in:
committed by
Aaron Bohy
parent
6d9ed0d62f
commit
a8d88d4009
@@ -523,7 +523,7 @@ export class CodeGenerator {
|
||||
const isNewBlock = !block || forceNewBlock || ast.dynamicTag !== null;
|
||||
let codeIdx = this.target.code.length;
|
||||
if (isNewBlock) {
|
||||
if (ast.dynamicTag && ctx.block) {
|
||||
if ((ast.dynamicTag || ctx.tKeyExpr) && ctx.block) {
|
||||
this.insertAnchor(ctx.block!);
|
||||
}
|
||||
block = this.createBlock(block, "block", ctx);
|
||||
|
||||
Reference in New Issue
Block a user