fix for inherited style
This commit is contained in:
parent
537f1592b1
commit
a637617d5b
1 changed files with 2 additions and 2 deletions
|
@ -295,7 +295,7 @@ function VnodeToReact({ vnode }: { vnode: VNode }): React.ReactNode {
|
||||||
if (HTMLNonCHildrenComponentTable[vnode.tagName]) {
|
if (HTMLNonCHildrenComponentTable[vnode.tagName]) {
|
||||||
const Tag = HTMLNonCHildrenComponentTable[vnode.tagName] ?? "div";
|
const Tag = HTMLNonCHildrenComponentTable[vnode.tagName] ?? "div";
|
||||||
const style = vnode.style;
|
const style = vnode.style;
|
||||||
|
|
||||||
return <Tag style={htmlStyleToReactStyle(style)} />;
|
return <Tag style={htmlStyleToReactStyle(style)} />;
|
||||||
}
|
}
|
||||||
// TODO: support svg
|
// TODO: support svg
|
||||||
|
@ -360,7 +360,7 @@ function Content() {
|
||||||
{html}
|
{html}
|
||||||
</code>
|
</code>
|
||||||
{data &&
|
{data &&
|
||||||
<div style={data.inheritedStyle}>
|
<div style={htmlStyleToReactStyle(data.inheritedStyle)}>
|
||||||
<VnodeToReact vnode={data.vnode} />
|
<VnodeToReact vnode={data.vnode} />
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue