mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
Fix for autocomplete delete action removing only the last item
This commit is contained in:
parent
33e3f123b4
commit
e471ffd07b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue