mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
return focus to the previously focused element after closing the dialog, fixes #861
This commit is contained in:
@@ -22,11 +22,7 @@ export async function showDialog(noteIds) {
|
||||
}
|
||||
}
|
||||
|
||||
utils.closeActiveDialog();
|
||||
|
||||
glob.activeDialog = $dialog;
|
||||
|
||||
$dialog.modal();
|
||||
utils.openDialog($dialog);
|
||||
|
||||
$noteAutoComplete.val('').trigger('focus');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user