fix persistent toasts lingering after disposal in DOM

pull/255/head
zadam 2019-10-29 18:59:56 +07:00
parent 205081c804
commit 904eb25f64
1 changed files with 2 additions and 2 deletions

@ -45,12 +45,12 @@ function showPersistent(options) {
}
if (options.closeAfter) {
setTimeout(() => $toast.toast('dispose'), options.closeAfter);
setTimeout(() => $toast.remove(), options.closeAfter);
}
}
function closePersistent(id) {
$("#toast-" + id).toast("dispose");
$("#toast-" + id).remove();
}
function showMessage(message, delay = 2000) {