diff --git a/web-ui/src/main/resources/WEB-INF/classes/web-ui-wro-sources.xml b/web-ui/src/main/resources/WEB-INF/classes/web-ui-wro-sources.xml index 3d3fa676b41..3708d2bbf22 100644 --- a/web-ui/src/main/resources/WEB-INF/classes/web-ui-wro-sources.xml +++ b/web-ui/src/main/resources/WEB-INF/classes/web-ui-wro-sources.xml @@ -34,7 +34,7 @@ - + @@ -80,13 +80,13 @@ - + + minimize="false"/> @@ -105,7 +105,7 @@ - + diff --git a/web-ui/src/main/resources/catalog/lib/jquery-3.7.1.js b/web-ui/src/main/resources/catalog/lib/jquery-3.7.1.js index 88fa54f3674..8ca6f83a8b6 100644 --- a/web-ui/src/main/resources/catalog/lib/jquery-3.7.1.js +++ b/web-ui/src/main/resources/catalog/lib/jquery-3.7.1.js @@ -153,7 +153,9 @@ // Define a local copy of jQuery jQuery = function( selector, context ) { - + if (context == undefined && typeof gnShadowRoot !== 'undefined') { + context = gnShadowRoot; + } // The jQuery object is actually just the init constructor 'enhanced' // Need init if jQuery is called (just allow error to be thrown if not included) return new jQuery.fn.init( selector, context ); @@ -3961,7 +3963,9 @@ // - Node.DOCUMENT_NODE // - Object // - Any - return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); + // https://github.com/jquery/jquery/issues/4317 + return owner.nodeType === 1 || owner.nodeType === 9 || (owner.nodeType === 11 && owner.host) || !( +owner.nodeType ); + // return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); };