Skip to content

Commit 357c2a1

Browse files
mltkevin-brown
authored andcommitted
Allow passing non-jQuery objects as dropdownParent
1 parent 9e4f842 commit 357c2a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/js/select2/dropdown/attachBody.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ define([
33
'../utils'
44
], function ($, Utils) {
55
function AttachBody (decorated, $element, options) {
6-
this.$dropdownParent = options.get('dropdownParent') || $(document.body);
6+
this.$dropdownParent = $(options.get('dropdownParent') || document.body);
77

88
decorated.call(this, $element, options);
99
}

0 commit comments

Comments
 (0)