Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(print): clicking inside print preview hides it
Elian Doran418a5465832f
diff --git a/apps/client/src/print.tsx b/apps/client/src/print.tsxindex 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 }) {