mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 17:28:50 +01:00
This commit is contained in:
parent
779c6ede28
commit
2bde2c1efb
1 changed files with 2 additions and 2 deletions
|
|
@ -233,7 +233,7 @@ export const bindCardEvent = async (options: {
|
|||
cardType: TCardType,
|
||||
id?: string,
|
||||
dialog?: Dialog,
|
||||
index?: number
|
||||
index?: number,
|
||||
}) => {
|
||||
if (window.siyuan.storage[Constants.LOCAL_FLASHCARD].fullscreen) {
|
||||
fullscreen(options.element.querySelector(".card__main"),
|
||||
|
|
@ -301,7 +301,7 @@ export const bindCardEvent = async (options: {
|
|||
};
|
||||
|
||||
countElement.innerHTML = genCardCount(options.cardsData, index);
|
||||
options.element.addEventListener("click", (event: MouseEvent) => {
|
||||
options.element.firstChild.addEventListener("click", (event: MouseEvent) => {
|
||||
const target = event.target as HTMLElement;
|
||||
let type = "";
|
||||
const currentCard = options.cardsData.cards[index];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue