1
0
mirror of synced 2024-11-22 04:56:08 +03:00
It doesn't really do what it says it does, and it introduces other
issues (single select elements re-open after selection).

Fixes #5490
This commit is contained in:
Austin S. Hemmelgarn 2019-04-30 23:13:50 -04:00 committed by Kevin Brown
parent 6009970b10
commit 39bfabd94b

View File

@ -276,23 +276,6 @@ define([
Select2.prototype._registerEvents = function () {
var self = this;
this.on('focus', function () {
self.$container.addClass('select2-container--focus');
if (!self.$container.hasClass('select2-container--disabled') &&
!self.isOpen()) {
if (self.options.get('multiple')) {
window.setTimeout(function () {
self.open();
},
self.options.get('ajax') ? 300 : 100);
}
else {
self.open();
}
}
});
this.on('open', function () {
self.$container.addClass('select2-container--open');