You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in alert.component.ts
caused by this as it fires after a onClose has been called by the dismiss (click)="onClose()"
if (this.dismissOnTimeout) {
setTimeout(() => this.onClose(), this.dismissOnTimeout);
}
fix would be something like the following to stop the emit being sent if the alert has been closed already
onClose() {
if (!this.closed){
this.closed = true;
this.close.emit(this);
}
}
The text was updated successfully, but these errors were encountered:
in alert.component.ts
caused by this as it fires after a onClose has been called by the dismiss (click)="onClose()"
if (this.dismissOnTimeout) {
setTimeout(() => this.onClose(), this.dismissOnTimeout);
}
fix would be something like the following to stop the emit being sent if the alert has been closed already
onClose() {
if (!this.closed){
this.closed = true;
this.close.emit(this);
}
}
The text was updated successfully, but these errors were encountered: