Skip to content

Commit

Permalink
Added support for the shadowdom
Browse files Browse the repository at this point in the history
  • Loading branch information
paxnovem committed Nov 1, 2019
1 parent 203e833 commit 69aab8d
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 @@ -195,7 +195,7 @@ define([
left: 0
};

if ($.contains(document.body, $offsetParent[0])) {
if ($.contains(document.body, $offsetParent[0]) || $offsetParent[0].isConnected) {
parentOffset = $offsetParent.offset();
}

Expand Down

0 comments on commit 69aab8d

Please sign in to comment.