Added support for the shadowdom
This commit is contained in:
parent
203e833153
commit
69aab8d2d3
2
src/js/select2/dropdown/attachBody.js
vendored
2
src/js/select2/dropdown/attachBody.js
vendored
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user