|
@@ -1318,10 +1318,10 @@ define('select2/selection/search',[
|
|
|
// both the `keyup` and `input` events.
|
|
|
this.$selection.on('input', '.select2-search--inline', function (evt) {
|
|
|
// Unbind the duplicated `keyup` event
|
|
|
- $(this).off('keyup');
|
|
|
+ self.$selection.off('keyup.search');
|
|
|
});
|
|
|
|
|
|
- this.$selection.on('keyup input', '.select2-search--inline',
|
|
|
+ this.$selection.on('keyup.search input', '.select2-search--inline',
|
|
|
function (evt) {
|
|
|
self.handleSearch(evt);
|
|
|
});
|
|
@@ -4471,6 +4471,10 @@ define('select2/core',[
|
|
|
});
|
|
|
|
|
|
this.on('query', function (params) {
|
|
|
+ if (!self.isOpen()) {
|
|
|
+ self.trigger('open');
|
|
|
+ }
|
|
|
+
|
|
|
this.data.query(params, function (data) {
|
|
|
self.trigger('results:all', {
|
|
|
data: data,
|