fix(animations): ensure DOM is cleaned up after multiple @trigger leave animations finish (#20740)

Closes #20541

PR Close #20740
This commit is contained in:
Matias Niemelä
2017-12-01 11:28:38 -08:00
committed by Igor Minar
parent 6790e02a13
commit b78ada198a
2 changed files with 60 additions and 1 deletions

View File

@ -32,7 +32,6 @@ export class AnimationGroupPlayer implements AnimationPlayer {
scheduleMicroTask(() => this._onFinish());
} else {
this.players.forEach(player => {
player.parentPlayer = this;
player.onDone(() => {
if (++doneCount >= total) {
this._onFinish();