Skip to content

Commit ffef822

Browse files
committedNov 11, 2022
fix(custom-elements): respect slot props in custom element mode
1 parent 55382ae commit ffef822

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed
 

‎packages/runtime-core/src/helpers/renderSlot.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,8 @@ export function renderSlot(
3737
isAsyncWrapper(currentRenderingInstance!.parent) &&
3838
currentRenderingInstance!.parent.isCE)
3939
) {
40-
return createVNode(
41-
'slot',
42-
name === 'default' ? null : { name },
43-
fallback && fallback()
44-
)
40+
if (name !== 'default') props.name = name
41+
return createVNode('slot', props, fallback && fallback())
4542
}
4643

4744
let slot = slots[name]

0 commit comments

Comments
 (0)
Please sign in to comment.