Skip to content

Commit

Permalink
fix: string slot null ctx in renderFn (#1462)
Browse files Browse the repository at this point in the history
  • Loading branch information
braddialpad committed Apr 29, 2022
1 parent 02c60bb commit 711a35f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/compileSlots.ts
Expand Up @@ -28,7 +28,7 @@ export function processSlot(source = '', Vue = vue) {
)
const renderFn = createRenderFunction(Vue)
return (ctx = {}) => {
const result = renderFn()
const result = renderFn(ctx)
const slotName = Object.keys(result.children)[0]
return result.children[slotName](ctx)
}
Expand Down

0 comments on commit 711a35f

Please sign in to comment.