소스 검색

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()}
     >
       <iframe
-        id={frameId}
+        id={frameId.current}
         ref={ref}
         frameBorder={0}
         sandbox="allow-forms allow-modals allow-scripts"