clear out menu.bindings on autocomplete lib after search (#3688)

This commit is contained in:
r888888888
2018-04-28 19:10:58 -07:00
parent b0a161b745
commit c5de0ca425
2 changed files with 23 additions and 0 deletions

View File

@@ -576,6 +576,9 @@
Danbooru.Post.initialize_saved_searches = function() {
$("#new_saved_search #saved_search_label_string").autocomplete({
search: function() {
$(this).data("ui-autocomplete").menu.bindings = $();
},
source: function(req, resp) {
Danbooru.SavedSearch.labels(req.term).then(function(labels) {
resp(labels.map(function(label) {