Skip to content

Build your personal knowledge base with Trilium Notes

fix(print): clicking inside print preview hides it

Elian Doran418a5465832f
diff --git a/apps/client/src/print.tsx b/apps/client/src/print.tsx
index 16b41cd42a..96461db2dc 100644
--- a/apps/client/src/print.tsx
+++ b/apps/client/src/print.tsx
@@ -29,7 +29,9 @@ async function main() {
const froca = (await import("./services/froca")).default;
const note = await froca.getNote(noteId);
- render(<App note={note} noteId={noteId} />, document.body);
+ const bodyWrapper = document.createElement("div");
+ render(<App note={note} noteId={noteId} />, bodyWrapper);
+ document.body.appendChild(bodyWrapper);
}
function App({ note, noteId }: { note: FNote | null | undefined, noteId: string }) {