Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhe141 committed Sep 12, 2024
1 parent e4ffe65 commit c5ce74a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/runtime-core/src/componentRenderUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,11 @@ export function renderComponentRoot(
}

// #5407
if (root.patchFlag > 0 && root.type === Fragment) {
if (
root.patchFlag > 0 &&
root.patchFlag & PatchFlags.DEV_ROOT_FRAGMENT &&
root.type === Fragment
) {
if (isArray(root.children)) {
const singleRoot = filterSingleRoot(root.children)
if (singleRoot) root = singleRoot
Expand Down

0 comments on commit c5ce74a

Please sign in to comment.