Skip to content

Commit 416c4d9

Browse files
committed
fix(toaster): drop setTimeout() on removeToast()
1 parent 699e701 commit 416c4d9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

projects/coreui-angular/src/lib/toast/toaster/toaster.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ export class ToasterComponent implements OnDestroy, OnInit, AfterContentChecked
138138
if (state.toast?.dynamic && (item.instance === state.toast)) {
139139
item.instance.visible = false;
140140
item.instance['visibleChange'].emit(false);
141-
setTimeout(() => {
142-
item.destroy();
143-
}, 300);
141+
item.destroy();
144142
}
145143
});
146144

0 commit comments

Comments
 (0)