mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
fix issue with t-if confusing patching algorithm
This commit is contained in:
@@ -431,7 +431,9 @@ export class QWeb {
|
||||
}
|
||||
let nodeID = ctx.generateID();
|
||||
let p =
|
||||
attrs.length + tattrs.length > 0 ? `{attrs:{${attrs.join(",")}}}` : "{}";
|
||||
attrs.length + tattrs.length > 0
|
||||
? `{key:${nodeID},attrs:{${attrs.join(",")}}}`
|
||||
: `{key:${nodeID}}`;
|
||||
ctx.addLine(`let c${nodeID} = [], p${nodeID} = ${p};`);
|
||||
for (let id of tattrs) {
|
||||
ctx.addIf(`_${id} instanceof Array`);
|
||||
|
||||
Reference in New Issue
Block a user