-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Closed
Description
#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();
}
lazka and BenjaminPorquet