fix(animations): do not retain deleted nodes during an non-removal animation (#17153)
Closes #17086
This commit is contained in:

committed by
Victor Berchet

parent
598fdad089
commit
068133ec85
@ -872,22 +872,7 @@ export class TransitionAnimationEngine {
|
||||
if (players) {
|
||||
optimizeGroupPlayer(players).onDone(fn);
|
||||
} else {
|
||||
let elementPlayers: AnimationPlayer[]|null = null;
|
||||
|
||||
let parent = element;
|
||||
while (parent = parent.parentNode) {
|
||||
const playersForThisElement = this.playersByElement.get(parent);
|
||||
if (playersForThisElement && playersForThisElement.length) {
|
||||
elementPlayers = playersForThisElement;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (elementPlayers) {
|
||||
optimizeGroupPlayer(elementPlayers).onDone(fn);
|
||||
} else {
|
||||
fn();
|
||||
}
|
||||
fn();
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user