Skip to content

Commit 55993a9

Browse files
committed
fix: Selector do not care order
1 parent 79ff70f commit 55993a9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Dom/dynamicCSS.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ function getOrder(prepend?: Prepend): AppendType {
4545
function findStyles(container: Element) {
4646
return Array.from(
4747
(containerCache.get(container) || container).children,
48-
).filter(
49-
node => node.tagName === 'STYLE' && node.hasAttribute(APPEND_ORDER),
50-
) as HTMLStyleElement[];
48+
).filter(node => node.tagName === 'STYLE') as HTMLStyleElement[];
5149
}
5250

5351
export function injectCSS(css: string, option: Options = {}) {

0 commit comments

Comments
 (0)