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(note_list): copy to clipboard button also opening note
Elian Dorand09e725d98b8
diff --git a/apps/client/src/services/syntax_highlight.ts b/apps/client/src/services/syntax_highlight.tsindex 02089e09c8..9b5592a6b3 100644--- a/apps/client/src/services/syntax_highlight.ts+++ b/apps/client/src/services/syntax_highlight.ts@@ -36,7 +36,9 @@ export function applyCopyToClipboardButton($codeBlock: JQuery<HTMLElement>) {const $copyButton = $("<button>").addClass("bx component icon-action tn-tool-button bx-copy copy-button").attr("title", t("code_block.copy_title"))- .on("click", () => {+ .on("click", (e) => {+ e.stopPropagation();+if (!isShare) {copyTextWithToast($codeBlock.text());} else {