Skip to content

Commit

Permalink
fix(custom-elements): respect slot props in custom element mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Nov 11, 2022
1 parent 55382ae commit ffef822
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/runtime-core/src/helpers/renderSlot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit ffef822

Please sign in to comment.