File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/runtime-core/src/components Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ const BaseTransitionImpl: ComponentOptions = {
199
199
}
200
200
201
201
const oldChild = instance . subTree
202
- const oldInnerChild = oldChild && getInnerChild ( oldChild )
202
+ let oldInnerChild = oldChild && getInnerChild ( oldChild )
203
203
204
204
// handle mode
205
205
if (
@@ -238,9 +238,9 @@ const BaseTransitionImpl: ComponentOptions = {
238
238
) => {
239
239
const leavingVNodesCache = getLeavingNodesForType (
240
240
state ,
241
- oldInnerChild ,
241
+ oldInnerChild ! ,
242
242
)
243
- leavingVNodesCache [ String ( oldInnerChild . key ) ] = oldInnerChild
243
+ leavingVNodesCache [ String ( oldInnerChild ! . key ) ] = oldInnerChild !
244
244
// early removal callback
245
245
el [ leaveCbKey ] = ( ) => {
246
246
earlyRemove ( )
@@ -250,6 +250,8 @@ const BaseTransitionImpl: ComponentOptions = {
250
250
enterHooks . delayedLeave = delayedLeave
251
251
}
252
252
}
253
+ } else if ( oldInnerChild ) {
254
+ oldInnerChild = undefined
253
255
}
254
256
255
257
return child
You can’t perform that action at this time.
0 commit comments