This closes https://github.com/select2/select2/issues/3325. This closes https://github.com/select2/select2/pull/3453.
@@ -22,7 +22,9 @@ define([
var self = this;
function select (data) {
- self.select(data);
+ self.trigger('select', {
+ data: data
+ });
}
params.term = params.term || '';