diff --git a/select2.js b/select2.js index 5591ea9d..b66a2d49 100644 --- a/select2.js +++ b/select2.js @@ -871,7 +871,7 @@ the specific language governing permissions and limitations under the Apache Lic select2.liveRegion.remove(); select2.dropdown.remove(); element - .removeClass("select2-offscreen") + .show() .removeData("select2") .off(".select2") .prop("autofocus", this.autofocus || false); @@ -2273,7 +2273,7 @@ the specific language governing permissions and limitations under the Apache Lic })); this.initContainerWidth(); - this.opts.element.addClass("select2-offscreen"); + this.opts.element.hide(); this.setPlaceholder(); }, @@ -2856,7 +2856,7 @@ the specific language governing permissions and limitations under the Apache Lic })); this.initContainerWidth(); - this.opts.element.addClass("select2-offscreen"); + this.opts.element.hide(); // set the placeholder if necessary this.clearSearch();