Pārlūkot izejas kodu

auto height for html preview

lloydzhou 1 gadu atpakaļ
vecāks
revīzija
2e9e20ce7c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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()}
     >
       <iframe
-        id={frameId}
+        id={frameId.current}
         ref={ref}
         frameBorder={0}
         sandbox="allow-forms allow-modals allow-scripts"