mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] component: better templateId for multiple subcomponents
Of course, the templateId computation is kind of tricky. Here, an issue occurred because the templateId did not take the componentId into account when we were in a loop, but with no keyed parent. This meant that multiple sub components shared the same templateId, confusing the vdom algorithm.
This commit is contained in:
@@ -245,7 +245,7 @@ QWeb.addDirective({
|
||||
? `key${keyID}`
|
||||
: ctx.inLoop
|
||||
? ctx.currentKey
|
||||
? `String(${ctx.currentKey} + '_k_' + i)`
|
||||
? `String(${ctx.currentKey} + '_k_' + i + '_c_' + ${componentID} )`
|
||||
: `String(-${componentID} - i)`
|
||||
: String(componentID);
|
||||
if (ctx.allowMultipleRoots) {
|
||||
|
||||
Reference in New Issue
Block a user