auto height for html preview

This commit is contained in:
lloydzhou 2024-07-23 17:54:07 +08:00
parent fb60fbb217
commit 2e9e20ce7c
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ export function HTMLPreview(props: { code: string }) {
onClick={(e) => e.stopPropagation()}
>
<iframe
id={frameId}
id={frameId.current}
ref={ref}
frameBorder={0}
sandbox="allow-forms allow-modals allow-scripts"