Skip to content

Commit

Permalink
Revert PR #5356. (#5492)
Browse files Browse the repository at this point in the history
It doesn't really do what it says it does, and it introduces other
issues (single select elements re-open after selection).

Fixes #5490
  • Loading branch information
Ferroin authored and kevin-brown committed May 1, 2019
1 parent 6009970 commit 39bfabd
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/js/select2/core.js
Expand Up @@ -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');
Expand Down

0 comments on commit 39bfabd

Please sign in to comment.