瀏覽代碼

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

Igor Vaynberg 12 年之前
父節點
當前提交
4d3f8b6332
共有 1 個文件被更改,包括 1 次插入1 次删除
  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");