[FIX] t-slot: correct parented relationship with nested slots

Closes #506
This commit is contained in:
Aaron Bohy
2019-11-28 09:47:51 +01:00
committed by Géry Debongnie
parent 6c8b401092
commit 85d4393242
4 changed files with 38 additions and 7 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ exports[`Link component can render simple cases 1`] = `
p8.on['click'] = extra.handlers['click' + 8];
const slot9 = this.constructor.slots[context.__owl__.slotId + '_' + 'default'];
if (slot9) {
slot9.call(this, context.__owl__.parent, Object.assign({}, extra, {parentNode: c8, vars: extra.vars, parent: owner}));
slot9.call(this, context.__owl__.parent, Object.assign({}, extra, {parentNode: c8, vars: extra.vars, parent: extra.parent || owner}));
}
return vn8;
}"