From 02dbdc7b15fcec2ba5f10657ef9f0014596acf42 Mon Sep 17 00:00:00 2001 From: mehmet-erim Date: Tue, 7 Jul 2020 10:51:38 +0300 Subject: [PATCH] fix: Expression has changed after it was checked error in loader-bar resolves #4652 --- .../src/lib/components/loader-bar/loader-bar.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npm/ng-packs/packages/theme-shared/src/lib/components/loader-bar/loader-bar.component.ts b/npm/ng-packs/packages/theme-shared/src/lib/components/loader-bar/loader-bar.component.ts index 512d959c5f..5f2e922263 100644 --- a/npm/ng-packs/packages/theme-shared/src/lib/components/loader-bar/loader-bar.component.ts +++ b/npm/ng-packs/packages/theme-shared/src/lib/components/loader-bar/loader-bar.component.ts @@ -31,7 +31,7 @@ export class LoaderBarComponent implements OnDestroy, OnInit { color = '#77b6ff'; @Input() - isLoading = false; + isLoading: boolean; progressLevel = 0; @@ -122,7 +122,7 @@ export class LoaderBarComponent implements OnDestroy, OnInit { if (this.interval) this.interval.unsubscribe(); this.progressLevel = 100; - this.isLoading = false; + setTimeout(() => (this.isLoading = false), 0); if (this.timer && !this.timer.closed) return;