Skip to content
Permalink
Browse files
fix(custom-elements): respect slot props in custom element mode
  • Loading branch information
yyx990803 committed Nov 11, 2022
1 parent 55382ae commit ffef8228694b39638f07c0fe5bc30d826262b672
Showing 1 changed file with 2 additions and 5 deletions.
@@ -37,11 +37,8 @@ export function renderSlot(
isAsyncWrapper(currentRenderingInstance!.parent) &&
currentRenderingInstance!.parent.isCE)
) {
return createVNode(
'slot',
name === 'default' ? null : { name },
fallback && fallback()
)
if (name !== 'default') props.name = name
return createVNode('slot', props, fallback && fallback())
}

let slot = slots[name]

0 comments on commit ffef822

Please sign in to comment.