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

fix #1400
This commit is contained in:
underfin 2020-06-26 05:00:19 +08:00 committed by GitHub
parent 299fda46a1
commit 2ff8dcab0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,6 @@ const BaseTransitionImpl = {
oldInnerChild.type !== Comment && oldInnerChild.type !== Comment &&
!isSameVNodeType(innerChild, oldInnerChild) !isSameVNodeType(innerChild, oldInnerChild)
) { ) {
const prevHooks = oldInnerChild.transition!
const leavingHooks = resolveTransitionHooks( const leavingHooks = resolveTransitionHooks(
oldInnerChild, oldInnerChild,
rawProps, rawProps,
@ -204,7 +203,6 @@ const BaseTransitionImpl = {
} }
return emptyPlaceholder(child) return emptyPlaceholder(child)
} else if (mode === 'in-out') { } else if (mode === 'in-out') {
delete prevHooks.delayedLeave
leavingHooks.delayLeave = ( leavingHooks.delayLeave = (
el: TransitionElement, el: TransitionElement,
earlyRemove, earlyRemove,