code: function () {
              if (!this.opened()) return;
              this.parent.close.apply(this, arguments);
              this.dropdown.removeAttr("style").addClass("select2-offscreen").insertAfter(this.selection).show();
          }
docs: single