diff --git a/packages/animations/src/players/animation_group_player.ts b/packages/animations/src/players/animation_group_player.ts index a73ebb2975..e67dc48087 100644 --- a/packages/animations/src/players/animation_group_player.ts +++ b/packages/animations/src/players/animation_group_player.ts @@ -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(); diff --git a/packages/core/test/animation/animation_integration_spec.ts b/packages/core/test/animation/animation_integration_spec.ts index 20df79bacc..1e0dcf40a2 100644 --- a/packages/core/test/animation/animation_integration_spec.ts +++ b/packages/core/test/animation/animation_integration_spec.ts @@ -2310,6 +2310,66 @@ export function main() { expect(cmp.event2.triggerName).toBeTruthy('ani2'); })); + it('should handle a leave animation for multiple triggers even if not all triggers have their own leave transition specified', + fakeAsync(() => { + @Component({ + selector: 'if-cmp', + template: ` +