From 68355448198b31d9a064710cfc4d790739909616 Mon Sep 17 00:00:00 2001 From: Artur Androsovych Date: Mon, 17 Jan 2022 04:59:04 +0200 Subject: [PATCH] fix(module:statistic): re-enter the Angular zone when the `nzCountdownFinish` emits (#7137) --- components/statistic/countdown.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/statistic/countdown.component.ts b/components/statistic/countdown.component.ts index 683cb4cc96..829c60dfc8 100644 --- a/components/statistic/countdown.component.ts +++ b/components/statistic/countdown.component.ts @@ -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()); + } } } }