ソースを参照

auto height for html preview

lloydzhou 1 年間 前
コミット
2e9e20ce7c
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/components/markdown.tsx

+ 1 - 1
app/components/markdown.tsx

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