Pārlūkot izejas kodu

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

Igor Vaynberg 12 gadi atpakaļ
vecāks
revīzija
3be3188853
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      select2.js

+ 1 - 0
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})