Browse Source

fix: Expression has changed after it was checked error in loader-bar

resolves #4652
pull/4656/head
mehmet-erim 6 years ago
parent
commit
02dbdc7b15
  1. 4
      npm/ng-packs/packages/theme-shared/src/lib/components/loader-bar/loader-bar.component.ts

4
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;

Loading…
Cancel
Save