Skip to content

Commit

Permalink
Update renderer.ts
Browse files Browse the repository at this point in the history
fix vuejs#7966 don't attempt to remove null fragments
  • Loading branch information
Jazcash authored Apr 1, 2023
1 parent c346af2 commit 8dd908f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2211,7 +2211,7 @@ function baseCreateRenderer(
// For fragments, directly remove all contained DOM nodes.
// (fragment child nodes cannot have transition)
let next
while (cur !== end) {
while (cur && cur !== end) {
next = hostNextSibling(cur)!
hostRemove(cur)
cur = next
Expand Down

0 comments on commit 8dd908f

Please sign in to comment.