Allow passing non-jQuery objects as dropdownParent
This commit is contained in:
parent
9e4f842fb1
commit
357c2a11c2
2
src/js/select2/dropdown/attachBody.js
vendored
2
src/js/select2/dropdown/attachBody.js
vendored
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user