🐛 Cannot select Again for spaced repetition Fix https://github.com/siyuan-note/siyuan/issues/8875

This commit is contained in:
Daniel 2023-08-01 18:31:31 +08:00
parent 5d20a2d631
commit 287fd29e29
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -326,9 +326,7 @@ export const bindCardEvent = (options: {
editor.protyle.element.classList.remove("card__block--hidemark", "card__block--hideli", "card__block--hidesb"); editor.protyle.element.classList.remove("card__block--hidemark", "card__block--hideli", "card__block--hidesb");
actionElements[0].classList.add("fn__none"); actionElements[0].classList.add("fn__none");
actionElements[1].querySelectorAll(".b3-button").forEach((element, btnIndex) => { actionElements[1].querySelectorAll(".b3-button").forEach((element, btnIndex) => {
if (btnIndex !== 0) { element.previousElementSibling.textContent = options.blocks[index].nextDues[btnIndex];
element.previousElementSibling.textContent = options.blocks[index].nextDues[btnIndex - 1];
}
}); });
actionElements[1].classList.remove("fn__none"); actionElements[1].classList.remove("fn__none");
return; return;