Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] "Cookie" prevents the change of status of a sub checklist. #8

Open
StefanoRausch opened this issue Jun 14, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@StefanoRausch
Copy link

I noticed that if you have the following checklist:

This is a test: (%)

- [/] item 1 (2/3)
    - [x] item 1.1
    - [x] item 1.2 (1/2)
        - [x] item 1.2.1
        - [ ] item 1.2.2
    - [ ] item 1.3 (100%)
        - [x] test
- [x] item 2

one cannot change the status of -[x] item 1.2 and -[ ] item 1.3.

It seems that if one works with deeper checklist structures the "cookie" prevents the change of status. All is good if the "cookie" is not present.

@acidghost
Copy link
Owner

Thanks for reporting the bug!

This seems to affect only updating via Live Preview. Triggering the command manually seems to work correctly.

I did some testing and it seems that Obsidian replaces the checkbox HTML element if it belongs to a nested list.

The Obsidian tasks plugin has a workaround for a possibly related issue: /~https://github.com/obsidian-tasks-group/obsidian-tasks/blob/7ca5c1163ddaec4ea8c5bd9c22a18ef2f3273d33/src/Obsidian/LivePreviewExtension.ts#L93-L104.

The fix is not working out of the box unfortunately and it's not immediate to me why. I'll dig deeper in the following days.

@acidghost acidghost added the bug Something isn't working label Jun 18, 2024
@acidghost acidghost self-assigned this Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants