fix(runtime-core): fix default shapeFlag for fragments

This commit is contained in:
Evan You 2021-07-14 17:54:19 -04:00
parent 29732c2c86
commit 2a310df753

View File

@ -394,7 +394,7 @@ function createBaseVNode(
children: unknown = null,
patchFlag = 0,
dynamicProps: string[] | null = null,
shapeFlag = ShapeFlags.ELEMENT,
shapeFlag = type === Fragment ? 0 : ShapeFlags.ELEMENT,
isBlockNode = false,
needFullChildrenNormalization = false
) {