Skip to content

Commit

Permalink
fix: timeOut is not disabled by disableTimeOut: true (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
iderets authored and scttcper committed Oct 15, 2019
1 parent 475b15f commit 8856066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/toastr/toast.component.ts
Expand Up @@ -128,7 +128,7 @@ export class Toast implements OnDestroy {
*/
activateToast() {
this.state = { ...this.state, value: 'active' };
if ((this.options.disableTimeOut === false || this.options.disableTimeOut !== 'timeOut') && this.options.timeOut) {
if (!(this.options.disableTimeOut === true || this.options.disableTimeOut === 'timeOut') && this.options.timeOut) {
this.outsideTimeout(() => this.remove(), this.options.timeOut);
this.hideTime = new Date().getTime() + this.options.timeOut;
if (this.options.progressBar) {
Expand Down

0 comments on commit 8856066

Please sign in to comment.