1
0
mirror of synced 2025-02-16 20:13:16 +03:00

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

This commit is contained in:
Igor Vaynberg 2012-06-15 08:29:47 -07:00
parent b840b4e76c
commit 43d990c319

View File

@ -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();