From 357c2a11c293c7d4f7a0b56bc7a99210db2bbb76 Mon Sep 17 00:00:00 2001 From: Mikhail Titov Date: Mon, 24 Sep 2018 20:56:01 -0500 Subject: [PATCH] Allow passing non-jQuery objects as dropdownParent --- src/js/select2/dropdown/attachBody.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/select2/dropdown/attachBody.js b/src/js/select2/dropdown/attachBody.js index acd8c1c8..7380d9c6 100644 --- a/src/js/select2/dropdown/attachBody.js +++ b/src/js/select2/dropdown/attachBody.js @@ -3,7 +3,7 @@ define([ '../utils' ], function ($, Utils) { function AttachBody (decorated, $element, options) { - this.$dropdownParent = options.get('dropdownParent') || $(document.body); + this.$dropdownParent = $(options.get('dropdownParent') || document.body); decorated.call(this, $element, options); }