Skip to content

Commit

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

0 comments on commit 8e0a1b1

Please sign in to comment.