From 43d990c31986094d74ec50de5ec5be18c4d14d88 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Fri, 15 Jun 2012 08:29:47 -0700 Subject: [PATCH] attach the dropdown to the element's body instead of the current body. issue #126 --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 59e88a18..da9f48bc 100755 --- a/select2.js +++ b/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();