Explorar o código

Trigger the `select` event in the tokenizer

This closes https://github.com/select2/select2/issues/3325.
This closes https://github.com/select2/select2/pull/3453.
Stretch %!s(int64=9) %!d(string=hai) anos
pai
achega
d08cb874f9
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/js/select2/data/tokenizer.js

+ 3 - 1
src/js/select2/data/tokenizer.js

@@ -22,7 +22,9 @@ define([
     var self = this;
 
     function select (data) {
-      self.select(data);
+      self.trigger('select', {
+        data: data
+      });
     }
 
     params.term = params.term || '';