mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] compiler: slot are called with a specific and different key
This commit is contained in:
committed by
Aaron Bohy
parent
6a7703ea82
commit
cec451fd15
@@ -32,6 +32,7 @@ function callSlot(
|
||||
extra: any,
|
||||
defaultContent?: (ctx: any, node: any, key: string) => BDom
|
||||
): BDom {
|
||||
key = key + "__slot_" + name;
|
||||
const slots = (ctx.props && ctx.props.slots) || {};
|
||||
const { __render, __ctx, __scope } = slots[name] || {};
|
||||
const slotScope = Object.create(__ctx || {});
|
||||
|
||||
Reference in New Issue
Block a user