Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/16240

Vanessa72acce2c8655
diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.ts
index 4edd52237f..3613dbc378 100644
--- a/app/src/card/openCard.ts
+++ b/app/src/card/openCard.ts
@@ -388,7 +388,7 @@ export const bindCardEvent = async (options: {
} else {
options.cardsData.unreviewedOldCardCount--;
}
- options.element.dispatchEvent(new CustomEvent("click", {detail: "0"}));
+ options.element.firstElementChild.dispatchEvent(new CustomEvent("click", {detail: "0"}));
options.cardsData.cards.splice(index, 1);
index--;
timedialog.destroy();
@@ -444,7 +444,7 @@ export const bindCardEvent = async (options: {
} else {
options.cardsData.unreviewedOldCardCount--;
}
- options.element.dispatchEvent(new CustomEvent("click", {detail: "0"}));
+ options.element.firstElementChild.dispatchEvent(new CustomEvent("click", {detail: "0"}));
transaction(undefined, [{
action: "removeFlashcards",
deckID: Constants.QUICK_DECK_ID,