Skip to content

Commit

Permalink
fix(module:statistic): re-enter the Angular zone when the `nzCountdow…
Browse files Browse the repository at this point in the history
…nFinish` emits (#7137)
  • Loading branch information
arturovt committed Jan 17, 2022
1 parent 806f024 commit 6835544
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/statistic/countdown.component.ts
Expand Up @@ -115,7 +115,10 @@ export class NzCountdownComponent extends NzStatisticComponent implements OnInit

if (this.diff === 0) {
this.stopTimer();
this.nzCountdownFinish.emit();

if (this.nzCountdownFinish.observers.length) {
this.ngZone.run(() => this.nzCountdownFinish.emit());
}
}
}
}

0 comments on commit 6835544

Please sign in to comment.