mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +01:00
fix persistent toasts lingering after disposal in DOM
This commit is contained in:
@@ -45,12 +45,12 @@ function showPersistent(options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (options.closeAfter) {
|
if (options.closeAfter) {
|
||||||
setTimeout(() => $toast.toast('dispose'), options.closeAfter);
|
setTimeout(() => $toast.remove(), options.closeAfter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function closePersistent(id) {
|
function closePersistent(id) {
|
||||||
$("#toast-" + id).toast("dispose");
|
$("#toast-" + id).remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
function showMessage(message, delay = 2000) {
|
function showMessage(message, delay = 2000) {
|
||||||
|
|||||||
Reference in New Issue
Block a user