chore: update todo block

This commit is contained in:
boojack
2022-07-03 11:24:57 +08:00
parent 5dd6d505cc
commit 65ade1fc87
7 changed files with 12 additions and 16 deletions

View File

@ -112,7 +112,7 @@ const Memo: React.FC<Props> = (props: Props) => {
} else {
locationService.setTagQuery(tagName);
}
} else if (targetEl.className === "todo-block") {
} else if (targetEl.classList.contains("todo-block")) {
const status = targetEl.dataset?.value;
const todoElementList = [...(memoContainerRef.current?.querySelectorAll(`span.todo-block[data-value=${status}]`) ?? [])];
for (const element of todoElementList) {