• Steven's avatar
    fix(web): correct task checkbox toggling in multi-section memos · d30ff289
    Steven authored
    Fixed a bug where clicking checkboxes in task lists would toggle the wrong
    checkbox when a memo contained multiple sections with separate task lists.
    
    The issue was that TaskListItem was counting tasks only within the immediate
    parent list (ul/ol), but the toggleTaskAtIndex function counts all tasks
    globally across the entire memo. This caused index misalignment.
    
    Changes:
    - Add containerRef to MemoContentContext for proper task scoping
    - Pass memoContentContainerRef through context in MemoContent component
    - Update TaskListItem to count all tasks within the container scope
    
    This ensures task indices are calculated consistently with the markdown
    manipulation logic, fixing checkbox toggling in complex multi-section memos.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    Co-Authored-By: 's avatarClaude <noreply@anthropic.com>
    d30ff289
Name
Last commit
Last update
.github Loading commit data...
cmd/memos Loading commit data...
internal Loading commit data...
plugin Loading commit data...
proto Loading commit data...
scripts Loading commit data...
server Loading commit data...
store Loading commit data...
web Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
.golangci.yaml Loading commit data...
.goreleaser.yaml Loading commit data...
CLAUDE.md Loading commit data...
CODEOWNERS Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...