From: underfin <2218301630@qq.com> Date: Thu, 25 Jun 2020 21:00:19 +0000 (+0800) Subject: fix(BaseTransition): fix `BaseTransition` delayed leave with mode `in-out` (#1404) X-Git-Tag: v3.0.0-beta.16~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ff8dcab0a51cc3634a0a739641fb4cfe459b731;p=thirdparty%2Fvuejs%2Fcore.git fix(BaseTransition): fix `BaseTransition` delayed leave with mode `in-out` (#1404) fix #1400 --- diff --git a/packages/runtime-core/src/components/BaseTransition.ts b/packages/runtime-core/src/components/BaseTransition.ts index a05f6ff5c0..7526d4fdb4 100644 --- a/packages/runtime-core/src/components/BaseTransition.ts +++ b/packages/runtime-core/src/components/BaseTransition.ts @@ -185,7 +185,6 @@ const BaseTransitionImpl = { oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) ) { - const prevHooks = oldInnerChild.transition! const leavingHooks = resolveTransitionHooks( oldInnerChild, rawProps, @@ -204,7 +203,6 @@ const BaseTransitionImpl = { } return emptyPlaceholder(child) } else if (mode === 'in-out') { - delete prevHooks.delayedLeave leavingHooks.delayLeave = ( el: TransitionElement, earlyRemove,