]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(BaseTransition): fix `BaseTransition` delayed leave with mode `in-out` (#1404)
authorunderfin <2218301630@qq.com>
Thu, 25 Jun 2020 21:00:19 +0000 (05:00 +0800)
committerGitHub <noreply@github.com>
Thu, 25 Jun 2020 21:00:19 +0000 (17:00 -0400)
fix #1400

packages/runtime-core/src/components/BaseTransition.ts

index a05f6ff5c059e6df477eac236413095d91740f56..7526d4fdb43bb5769135e697499052a31b7fac49 100644 (file)
@@ -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,