Skip to content

Commit

Permalink
Merge pull request #3741 from preactjs/bugfix-nested-unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Sep 27, 2022
2 parents a868b02 + 6b70436 commit 32163d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diff/index.js
Expand Up @@ -518,7 +518,7 @@ export function unmount(vnode, parentVNode, skipRemove) {
if ((r = vnode._children)) {
for (let i = 0; i < r.length; i++) {
if (r[i]) {
unmount(r[i], parentVNode, typeof vnode.type != 'function');
unmount(r[i], parentVNode, skipRemove || typeof vnode.type !== 'function');
}
}
}
Expand Down

0 comments on commit 32163d0

Please sign in to comment.