mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
close hanging autocomplete on dialog close, fixes #3241
This commit is contained in:
@@ -245,6 +245,8 @@ async function openDialog($dialog, closeActDialog = true) {
|
||||
$dialog.modal();
|
||||
|
||||
$dialog.on('hidden.bs.modal', () => {
|
||||
$(".aa-input").autocomplete("close");
|
||||
|
||||
if (!glob.activeDialog || glob.activeDialog === $dialog) {
|
||||
focusSavedElement();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user