From c39e6f2d318cad98172f5048562836b93c9b6e6a Mon Sep 17 00:00:00 2001 From: Brad Paugh Date: Thu, 28 Apr 2022 14:13:19 -0700 Subject: [PATCH] fix: string slot null ctx in renderFn --- src/utils/compileSlots.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/compileSlots.ts b/src/utils/compileSlots.ts index 8494b3fe4..fd06a934b 100644 --- a/src/utils/compileSlots.ts +++ b/src/utils/compileSlots.ts @@ -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) }