Skip to content

Commit

Permalink
Merge pull request #141 from oddbird/assign-adoptedstylesheets-rather…
Browse files Browse the repository at this point in the history
…-than-push
  • Loading branch information
jgerigmeyer authored Oct 27, 2023
2 parents 3b2bbb8 + 08e1a6b commit 69b9ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function injectStyles(root: Document | ShadowRoot) {
root.append(sheet);
}
} else {
root.adoptedStyleSheets.push(popoverStyleSheet);
root.adoptedStyleSheets = [...root.adoptedStyleSheets, popoverStyleSheet];
}
}

Expand Down

0 comments on commit 69b9ed5

Please sign in to comment.