Skip to content

Commit

Permalink
fix(core): preserve static class/styles on root component
Browse files Browse the repository at this point in the history
  • Loading branch information
chintankavathia committed Sep 4, 2024
1 parent 5351b11 commit a019cc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/render3/component_ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -602,10 +602,10 @@ function applyRootComponentStyling(
}
if (tNode.mergedAttrs !== null) {
computeStaticStyling(tNode, tNode.mergedAttrs, true);
}

if (rNode !== null) {
setupStaticAttributes(hostRenderer, rNode, tNode);
if (rNode !== null) {
setupStaticAttributes(hostRenderer, rNode, tNode);
}
}
}

Expand Down

0 comments on commit a019cc8

Please sign in to comment.