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 authored and zhangzhonghe committed Apr 12, 2023
1 parent 6890861 commit 370e4e6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/runtime-core/src/helpers/renderSlot.ts
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 370e4e6

Please sign in to comment.