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

This commit is contained in:
azivner 2018-02-11 08:57:12 -05:00
parent 7b77e40514
commit 58f5d0cf6e

View file

@ -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: {