Skip to content

Commit afcc9a5

Browse files
authored
fix(runtime): provide second arg to insertBefore (#5933)
1 parent f89c6a3 commit afcc9a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/styles.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const addStyle = (styleContainerNode: any, cmpMeta: d.ComponentRuntimeMet
102102
* attach styles at the beginning of a shadow root node if we render shadow components
103103
*/
104104
if (cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation && styleContainerNode.nodeName !== 'HEAD') {
105-
styleContainerNode.insertBefore(styleElm);
105+
styleContainerNode.insertBefore(styleElm, null);
106106
}
107107
}
108108

0 commit comments

Comments
 (0)