Skip to content

Commit

Permalink
fix(runtime-core): 'cur' attr is undefined in removeFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
Chang committed Jan 29, 2022
1 parent 81a6708 commit 507b573
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 @@ -2196,7 +2196,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 507b573

Please sign in to comment.