mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-18 17:31:53 +08: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.on('hidden.bs.modal', () => {
|
||||
$(".aa-input").autocomplete("close");
|
||||
|
||||
if (!glob.activeDialog || glob.activeDialog === $dialog) {
|
||||
focusSavedElement();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user