mirror of
https://github.com/zadam/trilium.git
synced 2025-10-21 15:49:00 +02:00
fix(note_list): copy to clipboard button also opening note
This commit is contained in:
parent
8be5b149c4
commit
d09e725d98
@ -36,7 +36,9 @@ export function applyCopyToClipboardButton($codeBlock: JQuery<HTMLElement>) {
|
|||||||
const $copyButton = $("<button>")
|
const $copyButton = $("<button>")
|
||||||
.addClass("bx component icon-action tn-tool-button bx-copy copy-button")
|
.addClass("bx component icon-action tn-tool-button bx-copy copy-button")
|
||||||
.attr("title", t("code_block.copy_title"))
|
.attr("title", t("code_block.copy_title"))
|
||||||
.on("click", () => {
|
.on("click", (e) => {
|
||||||
|
e.stopPropagation();
|
||||||
|
|
||||||
if (!isShare) {
|
if (!isShare) {
|
||||||
copyTextWithToast($codeBlock.text());
|
copyTextWithToast($codeBlock.text());
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user