Skip to content

Checkbox state interference between todo lists separated by horizontal rules #5635

@neevop

Description

@neevop

Pre-submission Checklist

  • I have searched the existing issues and this bug has not been reported yet
  • I have tested this issue on the demo site or the latest version

Where did you encounter this bug?

Latest stable version (self-hosted)

Memos Version

v0.26.1

Bug Description

When creating multiple todo lists separated by horizontal rules (---), checking/unchecking items in one list incorrectly affects the state of items in the other list. The checkbox interaction seems to have index conflicts across separated sections.

Steps to Reproduce

Create a new memo with the following content:

## test todo checkbox

- [ ] todo 1-1
- [ ] todo 1-2

---

- [ ] todo 2-1
- [ ] todo 2-2

Save the memo
Click on the checkbox of "todo 1-2" to mark it as completed
Observe the state of items in the second list (after the ---)

Expected Behavior

No response

Screenshots & Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions