Skip to content

Commit

Permalink
fix(runtime-core): fix default shapeFlag for fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jul 16, 2021
1 parent 29732c2 commit 2a310df
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 @@ -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
) {
Expand Down

0 comments on commit 2a310df

Please sign in to comment.