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…
Reference in New Issue