mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
fix(client): delete modal crashing
This commit is contained in:
parent
4e75ba78b4
commit
4563366732
@ -206,7 +206,7 @@ function closeActiveDialog() {
|
||||
if (glob.activeDialog) {
|
||||
// TODO: Fix once we use proper ES imports.
|
||||
//@ts-ignore
|
||||
Modal.getOrCreateInstance(glob.activeDialog[0]).hide();
|
||||
bootstrap.Modal.getOrCreateInstance(glob.activeDialog[0]).hide();
|
||||
glob.activeDialog = null;
|
||||
}
|
||||
}
|
||||
@ -252,7 +252,7 @@ async function openDialog($dialog: JQuery<HTMLElement>, closeActDialog = true) {
|
||||
saveFocusedElement();
|
||||
// TODO: Fix once we use proper ES imports.
|
||||
//@ts-ignore
|
||||
Modal.getOrCreateInstance($dialog[0]).show();
|
||||
bootstrap.Modal.getOrCreateInstance($dialog[0]).show();
|
||||
|
||||
$dialog.on('hidden.bs.modal', () => {
|
||||
$(".aa-input").autocomplete("close");
|
||||
|
Loading…
x
Reference in New Issue
Block a user