Skip to content

Commit

Permalink
fix: on adopt insert after last child
Browse files Browse the repository at this point in the history
  • Loading branch information
calebdwilliams committed Feb 13, 2021
1 parent 93be54e commit c7083ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adopt.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function adoptStyleSheets(location) {

// Since we already removed all elements during appending them to the
// document fragment, we can just re-add them again.
location.insertBefore(newStyles, location.firstChild);
location.insertBefore(newStyles, location.lastChild);

// We need to apply all actions we have done with the original CSSStyleSheet
// to each new style element and to any other element that missed last
Expand Down

0 comments on commit c7083ad

Please sign in to comment.