]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(runtime-core): fix default shapeFlag for fragments
authorEvan You <yyx990803@gmail.com>
Wed, 14 Jul 2021 21:54:19 +0000 (17:54 -0400)
committerEvan You <yyx990803@gmail.com>
Fri, 16 Jul 2021 18:30:49 +0000 (14:30 -0400)
packages/runtime-core/src/vnode.ts

index 703c20fe971ef11885603dccff3797f3403f628a..7cb39237769c50fe91187bd5f59196abca7f5f16 100644 (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
 ) {