From 58f5d0cf6e5a8f4c46ffc40ceabc9d7de982bf27 Mon Sep 17 00:00:00 2001 From: azivner Date: Sun, 11 Feb 2018 08:57:12 -0500 Subject: [PATCH] recent notes are not closed when I click on e.g. dialog title bar --- src/public/javascripts/dialogs/recent_notes.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/public/javascripts/dialogs/recent_notes.js b/src/public/javascripts/dialogs/recent_notes.js index a9667f394..b48c08266 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: {