Skip to content

Commit 5e41ce0

Browse files
author
Illia Obukhau
committed
feat(html-element-web): show markup for void elements in design mode
1 parent 055f8c9 commit 5e41ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pluggableWidgets/html-element-web/src/HTMLElement.editorPreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function preview(props: HTMLElementPreviewProps): ReactElement {
1313
<Fragment>
1414
{items.map(i =>
1515
isVoidElement(tag) ? (
16-
createElement(tag, { className: props.className, style: props.styleObject })
16+
<div>{`<${tag} />`}</div>
1717
) : (
1818
<HTMLTag
1919
key={i}

0 commit comments

Comments
 (0)