Explorar o código

insert select2 container before element instead of after. better bootstrap compat. fixes #278

Igor Vaynberg %!s(int64=12) %!d(string=hai) anos
pai
achega
4d3f8b6332
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -493,7 +493,7 @@
             this.opts.element
                 .data("select2", this)
                 .hide()
-                .after(this.container);
+                .before(this.container);
             this.container.data("select2", this);
 
             this.dropdown = this.container.find(".select2-drop");