Skip to content

Build your personal knowledge base with Trilium Notes

recent notes are not closed when I click on e.g. dialog title bar

azivner58f5d0cf6e5a
diff --git a/src/public/javascripts/dialogs/recent_notes.js b/src/public/javascripts/dialogs/recent_notes.js
index a9667f394f..b48c082663 100644
--- a/src/public/javascripts/dialogs/recent_notes.js
+++ b/src/public/javascripts/dialogs/recent_notes.js
@@ -59,8 +59,9 @@ const recentNotes = (function() {
event.preventDefault();
},
close: function (event, ui) {
- $searchInput.autocomplete('destroy');
- $dialog.dialog('close');
+ // keep autocomplete open
+ // we're kind of abusing autocomplete to work in a way which it's not designed for
+ $searchInput.autocomplete("search", "")
},
create: () => $searchInput.autocomplete("search", ""),
classes: {