Skip to content

Commit 6835544

Browse files
authored
fix(module:statistic): re-enter the Angular zone when the nzCountdownFinish emits (#7137)
1 parent 806f024 commit 6835544

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/statistic/countdown.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ export class NzCountdownComponent extends NzStatisticComponent implements OnInit
115115

116116
if (this.diff === 0) {
117117
this.stopTimer();
118-
this.nzCountdownFinish.emit();
118+
119+
if (this.nzCountdownFinish.observers.length) {
120+
this.ngZone.run(() => this.nzCountdownFinish.emit());
121+
}
119122
}
120123
}
121124
}

0 commit comments

Comments
 (0)