Skip to content

Commit 496be91

Browse files
authored
fix: Render the actual component for svelte when returned from cell function (#4588)
1 parent 5316fd7 commit 496be91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte-table/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function flexRender(component: any, props: any) {
5555
const result = component(props)
5656

5757
if (isSvelteComponent(result)) {
58-
return result
58+
return renderComponent(result, props)
5959
}
6060

6161
return wrapInPlaceholder(result)

0 commit comments

Comments
 (0)