Skip to content

Commit 2a310df

Browse files
committed
fix(runtime-core): fix default shapeFlag for fragments
1 parent 29732c2 commit 2a310df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/vnode.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ function createBaseVNode(
394394
children: unknown = null,
395395
patchFlag = 0,
396396
dynamicProps: string[] | null = null,
397-
shapeFlag = ShapeFlags.ELEMENT,
397+
shapeFlag = type === Fragment ? 0 : ShapeFlags.ELEMENT,
398398
isBlockNode = false,
399399
needFullChildrenNormalization = false
400400
) {

0 commit comments

Comments
 (0)