Explorar el Código

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

Igor Vaynberg hace 12 años
padre
commit
4d3f8b6332
Se han modificado 1 ficheros con 1 adiciones y 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");