From d08cb874f99ffc9c0359b44282a0072df438d716 Mon Sep 17 00:00:00 2001 From: Stretch Date: Fri, 21 Aug 2015 18:30:35 -0400 Subject: [PATCH] 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. --- src/js/select2/data/tokenizer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/select2/data/tokenizer.js b/src/js/select2/data/tokenizer.js index 3584ee15..456f9b2c 100644 --- a/src/js/select2/data/tokenizer.js +++ b/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 || '';