mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 08:45:05 +00:00
Fix for autocomplete delete action removing only the last item
This commit is contained in:
parent
33e3f123b4
commit
e471ffd07b
@ -64,7 +64,7 @@ $.fn.autocomplete = function(options) {
|
||||
|
||||
d.find('a').click(function() {
|
||||
closeAutocomplete();
|
||||
inputSelectedItems.splice($.inArray(item), 1);
|
||||
inputSelectedItems.splice($.inArray(item, inputSelectedItems), 1);
|
||||
$(this).parent().parent().remove();
|
||||
if (options.single) {
|
||||
me.show();
|
||||
|
Loading…
x
Reference in New Issue
Block a user