We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e529955 commit a88c2c8Copy full SHA for a88c2c8
packages/runtime-core/src/componentRenderUtils.ts
@@ -64,6 +64,13 @@ export function renderComponentRoot(
64
result = normalizeVNode(
65
instance.render!.call(proxyToUse, proxyToUse, renderCache)
66
)
67
+ // root node should inherit class/style in component tag and patch
68
+ if (vnode.patchFlag & PatchFlags.CLASS) {
69
+ result.patchFlag |= PatchFlags.CLASS
70
+ }
71
+ if (vnode.patchFlag & PatchFlags.STYLE) {
72
+ result.patchFlag |= PatchFlags.STYLE
73
74
} else {
75
// functional
76
const render = Component as FunctionalComponent
0 commit comments