Skip to content

Commit 472d831

Browse files
authored
Use span instead of div (#974)
Div effect how the page is displayed.
1 parent 9ffaf93 commit 472d831

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/client/packages/@reactpy/client/src/components.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ function ImportedElement({ model }: { model: ReactPyVdom }) {
161161
if (!importSourceFallback) {
162162
return null;
163163
} else if (typeof importSourceFallback === "string") {
164-
return <div>{importSourceFallback}</div>;
164+
return <span>{importSourceFallback}</span>;
165165
} else {
166166
return <StandardElement model={importSourceFallback} />;
167167
}
168168
} else {
169-
return <div ref={importSourceRef} />;
169+
return <span ref={importSourceRef} />;
170170
}
171171
}
172172

0 commit comments

Comments
 (0)