Vanessa 2025-10-14 18:13:45 +08:00
parent bef1decc1a
commit cce7d31652

View file

@ -335,7 +335,7 @@ export const bindCardEvent = async (options: {
return; return;
} }
const moreElement = hasClosestByAttribute(target, "data-type", "more"); const moreElement = hasClosestByAttribute(target, "data-type", "more");
if (moreElement) { if (moreElement && currentCard) {
event.stopPropagation(); event.stopPropagation();
event.preventDefault(); event.preventDefault();
if (filterElement.getAttribute("data-cardtype") === "all" && filterElement.getAttribute("data-id")) { if (filterElement.getAttribute("data-cardtype") === "all" && filterElement.getAttribute("data-id")) {
@ -874,6 +874,7 @@ const allDone = (countElement: Element, editor: Protyle, actionElements: NodeLis
emptyElement.classList.remove("fn__none"); emptyElement.classList.remove("fn__none");
actionElements[0].classList.add("fn__none"); actionElements[0].classList.add("fn__none");
actionElements[1].classList.add("fn__none"); actionElements[1].classList.add("fn__none");
countElement.parentElement.querySelector('[data-type="more"]').classList.add("fn__none");
}; };
const newRound = (countElement: Element, editor: Protyle, actionElements: NodeListOf<Element>, unreviewedCount: number) => { const newRound = (countElement: Element, editor: Protyle, actionElements: NodeListOf<Element>, unreviewedCount: number) => {