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