Skip to content

Commit

Permalink
fix(BaseTransition): fix BaseTransition delayed leave with mode `in…
Browse files Browse the repository at this point in the history
…-out` (#1404)

fix #1400
  • Loading branch information
underfin authored Jun 25, 2020
1 parent 299fda4 commit 2ff8dca
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/runtime-core/src/components/BaseTransition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ const BaseTransitionImpl = {
oldInnerChild.type !== Comment &&
!isSameVNodeType(innerChild, oldInnerChild)
) {
const prevHooks = oldInnerChild.transition!
const leavingHooks = resolveTransitionHooks(
oldInnerChild,
rawProps,
Expand All @@ -204,7 +203,6 @@ const BaseTransitionImpl = {
}
return emptyPlaceholder(child)
} else if (mode === 'in-out') {
delete prevHooks.delayedLeave
leavingHooks.delayLeave = (
el: TransitionElement,
earlyRemove,
Expand Down

0 comments on commit 2ff8dca

Please sign in to comment.