Skip to content

Commit 43d990c

Browse files
committed
attach the dropdown to the element's body instead of the current body. issue select2#126
1 parent b840b4e commit 43d990c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@
668668
if (this.opened()) return;
669669

670670
this.container.addClass("select2-dropdown-open").addClass("select2-container-active");
671-
this.dropdown.detach().appendTo('body').addClass("select2-drop-active");
671+
this.dropdown.detach().appendTo(this.opts.element.parents("body")).addClass("select2-drop-active");
672672

673673
this.positionDropdown();
674674

0 commit comments

Comments
 (0)