Skip to content

Commit

Permalink
fix progress bar on extendedTimeOut closes #276
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Dec 1, 2017
1 parent cc5849c commit a8295a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/toastr/toast.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class Toast implements OnDestroy {
this.timeout = setTimeout(() => this.remove(), this.options.extendedTimeOut);
this.options.timeOut = this.options.extendedTimeOut;
this.hideTime = new Date().getTime() + (this.options.timeOut || 0);
this.width = 100;
this.width = -1;
if (this.options.progressBar) {
this.intervalId = setInterval(() => this.updateProgress(), 10);
}
Expand Down

0 comments on commit a8295a8

Please sign in to comment.