mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update todo block
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user