Ver código fonte

fix(BaseTransition): fix `BaseTransition` delayed leave with mode `in-out` (#1404)

fix #1400
underfin 5 anos atrás
pai
commit
2ff8dcab0a

+ 0 - 2
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,