1
0
mirror of synced 2024-11-26 14:56:07 +03:00

fix bug in destroy method that would keep the original element hidden. fixes #815

This commit is contained in:
Igor Vaynberg 2013-02-07 16:20:29 -08:00
parent 3ec535ec5b
commit 3be3188853

View File

@ -643,6 +643,7 @@ the specific language governing permissions and limitations under the Apache Lic
select2.container.remove(); select2.container.remove();
select2.dropdown.remove(); select2.dropdown.remove();
select2.opts.element select2.opts.element
.removeClass("select2-offscreen")
.removeData("select2") .removeData("select2")
.unbind(".select2") .unbind(".select2")
.attr({"tabIndex": this.elementTabIndex}) .attr({"tabIndex": this.elementTabIndex})