Skip to content

Commit

Permalink
fix(Transition): should not be updated again after unmounted (#6835)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhonghe committed Oct 9, 2022
1 parent 82e3f2d commit 60cf067
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/runtime-core/src/components/BaseTransition.ts
Expand Up @@ -238,7 +238,8 @@ const BaseTransitionImpl: ComponentOptions = {
// return placeholder node and queue update when leave finishes
leavingHooks.afterLeave = () => {
state.isLeaving = false
instance.update()
// #6835
instance.update.active !== false && instance.update()
}
return emptyPlaceholder(child)
} else if (mode === 'in-out' && innerChild.type !== Comment) {
Expand Down

0 comments on commit 60cf067

Please sign in to comment.