#5584 breaks the usage of Select2 inside a ShadowRoot, because $.contains() returns false, even though the Node is actually connected to the document.
I'd propose changing the following code:
if ($.contains(document.body, $offsetParent[0])) {
parentOffset = $offsetParent.offset();
}
To this:
if ($offsetParent[0].isConnected) {
parentOffset = $offsetParent.offset();
}
#5584 breaks the usage of Select2 inside a ShadowRoot, because
$.contains()returns false, even though the Node is actually connected to the document.I'd propose changing the following code:
To this: