From 3be318885321ebda226ec722c242c527322a9288 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Thu, 7 Feb 2013 16:20:29 -0800 Subject: [PATCH] fix bug in destroy method that would keep the original element hidden. fixes #815 --- select2.js | 1 + 1 file changed, 1 insertion(+) diff --git a/select2.js b/select2.js index aaa4144f..2ffb25b6 100644 --- a/select2.js +++ b/select2.js @@ -643,6 +643,7 @@ the specific language governing permissions and limitations under the Apache Lic select2.container.remove(); select2.dropdown.remove(); select2.opts.element + .removeClass("select2-offscreen") .removeData("select2") .unbind(".select2") .attr({"tabIndex": this.elementTabIndex})