Skip to content

Wrong checkbox checked when it's preceded by checkbox in a codeblock #5319

@spaghetti-coder

Description

@spaghetti-coder

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.25.3

Bug Description

Wrong checkbox checked when it's preceded by checkbox in a codeblock

Steps to Reproduce

  1. Create a note:
    ```
    -[ ] foo
    ```
    - [ ] bar
    
    I.e. the first checkbox is in a codeblock.
  2. In view mode click bar checkbox

Expected

-[ ] foo
  • bar

Actual

-[x] foo
  • bar

Screenshots & Additional Context

Client env:

  • Linux Mint 22.2, Chrome 142.0.7444.175 / Brave
  • Android 15, Chrome 142.0.7444.171

Deployment:

  • Container from official docker image
  • Official demo site

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