Skip to content

Commit

Permalink
fix(runtime-core): avoid rendering plainObject as VNode
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Sep 26, 2024
1 parent c0e9434 commit eb40204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/vnode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ export function normalizeVNode(child: VNodeChild): VNode {
// #3666, avoid reference pollution when reusing vnode
child.slice(),
)
} else if (typeof child === 'object') {
} else if (isVNode(child)) {
// already vnode, this should be the most common since compiled templates
// always produce all-vnode children arrays
return cloneIfMounted(child)
Expand Down

0 comments on commit eb40204

Please sign in to comment.