From 72acce2c8655652e20737b3c69c8684ea76f5b3e Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 11 Nov 2025 10:45:31 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16240 --- app/src/card/openCard.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.ts index 4edd52237..3613dbc37 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,