mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
return focus to the previously focused element after closing the dialog, fixes #861
This commit is contained in:
@@ -10,13 +10,9 @@ let callback = null;
|
||||
export async function showDialog(cb) {
|
||||
callback = cb;
|
||||
|
||||
utils.closeActiveDialog();
|
||||
|
||||
glob.activeDialog = $dialog;
|
||||
|
||||
$autoComplete.val('');
|
||||
|
||||
$dialog.modal();
|
||||
utils.openDialog($dialog);
|
||||
|
||||
noteAutocompleteService.initNoteAutocomplete($autoComplete, { hideGoToSelectedNoteButton: true });
|
||||
noteAutocompleteService.showRecentNotes($autoComplete);
|
||||
|
||||
Reference in New Issue
Block a user