Skip to content

Commit

Permalink
copy attributes to document element
Browse files Browse the repository at this point in the history
  • Loading branch information
salazarm committed Dec 7, 2021
1 parent ee00740 commit eb9a4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-dom/src/client/ReactDOMHostConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ export function appendChild(
doc = ((parentInstance.parentElement: any): Document);
documentElement = parentInstance;
}
copyAttributes(parentInstance, child);
copyAttributes(documentElement, child);

const newHead = child.getElementsByTagName('head')[0];
if (newHead) {
Expand Down

0 comments on commit eb9a4c6

Please sign in to comment.