소스 검색

attach the dropdown to the element's body instead of the current body. issue #126

Igor Vaynberg 13 년 전
부모
커밋
43d990c319
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -668,7 +668,7 @@
             if (this.opened()) return;
 
             this.container.addClass("select2-dropdown-open").addClass("select2-container-active");
-            this.dropdown.detach().appendTo('body').addClass("select2-drop-active");
+            this.dropdown.detach().appendTo(this.opts.element.parents("body")).addClass("select2-drop-active");
 
             this.positionDropdown();