diff --git a/src/toaster-container.component.ts b/src/toaster-container.component.ts index 17f7e4d5..4554662b 100644 --- a/src/toaster-container.component.ts +++ b/src/toaster-container.component.ts @@ -11,7 +11,7 @@ import {Toast} from './toast'; [iconClass]="toasterconfig.iconClasses[toast.type]" [ngClass]="toasterconfig.typeClasses[toast.type]" (click)="click(toast)" (clickEvent)="childClick($event)" - (mouseover)="stopTimer(toast)" (mouseout)="restartTimer"> + (mouseover)="stopTimer(toast)" (mouseout)="restartTimer(toast)"> `//, @@ -75,7 +75,7 @@ export class ToasterContainerComponent { restartTimer(toast: Toast) { if (this.toasterconfig.mouseoverTimerStop) { - if (toast.timeoutId) { + if (!toast.timeoutId) { this.configureTimer(toast); } } else if (toast.timeoutId === null) { @@ -205,4 +205,4 @@ export class ToasterContainerComponent { if(this.addToastSubscriber) { this.addToastSubscriber.unsubscribe(); } if(this.clearToastsSubscriber) { this.clearToastsSubscriber.unsubscribe(); } } -} \ No newline at end of file +}