From 60cf06769a4cbc3de8323117684db8701664f440 Mon Sep 17 00:00:00 2001 From: Rairn <958414905@qq.com> Date: Sun, 9 Oct 2022 12:05:14 +0800 Subject: [PATCH] fix(Transition): should not be updated again after unmounted (#6835) --- packages/runtime-core/src/components/BaseTransition.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/runtime-core/src/components/BaseTransition.ts b/packages/runtime-core/src/components/BaseTransition.ts index 5e5e216d34a..4b654812ead 100644 --- a/packages/runtime-core/src/components/BaseTransition.ts +++ b/packages/runtime-core/src/components/BaseTransition.ts @@ -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) {