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