fix(note_list): copy to clipboard button also opening note

This commit is contained in:
Elian Doran 2025-08-01 13:07:58 +03:00
parent 8be5b149c4
commit d09e725d98
No known key found for this signature in database

View File

@ -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 {