Skip to content

Commit 2ff8dca

Browse files
authored
fix(BaseTransition): fix BaseTransition delayed leave with mode in-out (#1404)
fix #1400
1 parent 299fda4 commit 2ff8dca

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

-2
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ const BaseTransitionImpl = {
185185
oldInnerChild.type !== Comment &&
186186
!isSameVNodeType(innerChild, oldInnerChild)
187187
) {
188-
const prevHooks = oldInnerChild.transition!
189188
const leavingHooks = resolveTransitionHooks(
190189
oldInnerChild,
191190
rawProps,
@@ -204,7 +203,6 @@ const BaseTransitionImpl = {
204203
}
205204
return emptyPlaceholder(child)
206205
} else if (mode === 'in-out') {
207-
delete prevHooks.delayedLeave
208206
leavingHooks.delayLeave = (
209207
el: TransitionElement,
210208
earlyRemove,

0 commit comments

Comments
 (0)