From 9352b51d282bcf5a8decb14d1d2b84829be62c40 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Thu, 7 Nov 2024 09:16:27 +0000 Subject: [PATCH] Keep PDF preview mounted while not visible (#21270) GitOrigin-RevId: 266ecbb72a5238e1e977265e56c33880ec1a54be --- .../js/features/ide-react/components/editor-and-pdf.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/frontend/js/features/ide-react/components/editor-and-pdf.tsx b/services/web/frontend/js/features/ide-react/components/editor-and-pdf.tsx index 6d664bcc20..6a9e4cd441 100644 --- a/services/web/frontend/js/features/ide-react/components/editor-and-pdf.tsx +++ b/services/web/frontend/js/features/ide-react/components/editor-and-pdf.tsx @@ -103,7 +103,7 @@ export const EditorAndPdf: FC = () => { onExpand={handlePdfPaneExpand} className="ide-react-panel" > - {pdfIsOpen && } + {/* ensure that "sync to code" is available in PDF only layout */} {pdfLayout === 'flat' && view === 'pdf' && (