mirror of
https://github.com/zadam/trilium.git
synced 2025-01-27 17:40:44 +08:00
close hanging autocomplete on dialog close, fixes #3241
This commit is contained in:
parent
d5732d7731
commit
44b68326a0
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue