I needed an event when a item got deleted from the widget, so I added this chunk of code. Maybe this could be added to the module?
Drupal.autocomplete_deluxe.MultipleWidget.Item.prototype.remove = function () {
this.element.remove();
var values = this.widget.valueForm.val();
var escapedValue = Drupal.autocomplete_deluxe.escapeRegex(this.item.value);
var regex = new RegExp('()*""' + escapedValue + '""()*', 'gi');
this.widget.valueForm.val(values.replace(regex, ''));
delete this.widget.items[this.value];
// Added trigger to know when an item is deleted.
$(this.widget.valueForm).trigger('autocompletedelete', [this.widget.items]);
};
Closed: outdated
2.1
Multiple values