Explorar o código

Added support for the shadowdom

Brian Grohe %!s(int64=5) %!d(string=hai) anos
pai
achega
69aab8d2d3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/js/select2/dropdown/attachBody.js

+ 1 - 1
src/js/select2/dropdown/attachBody.js

@@ -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();
     }