Skip to content

Commit

Permalink
Allow passing non-jQuery objects as dropdownParent
Browse files Browse the repository at this point in the history
  • Loading branch information
mlt authored and kevin-brown committed Aug 28, 2019
1 parent 9e4f842 commit 357c2a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/select2/dropdown/attachBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 357c2a1

Please sign in to comment.