Skip to content

Commit 2e9e20c

Browse files
committed
auto height for html preview
1 parent fb60fbb commit 2e9e20c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/markdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function HTMLPreview(props: { code: string }) {
9999
onClick={(e) => e.stopPropagation()}
100100
>
101101
<iframe
102-
id={frameId}
102+
id={frameId.current}
103103
ref={ref}
104104
frameBorder={0}
105105
sandbox="allow-forms allow-modals allow-scripts"

0 commit comments

Comments
 (0)