Skip to content

Bug: Nested to-do list prematurely marked as complete #156

@yutanagano

Description

@yutanagano

Thanks for the lovely plugin. I have noticed that when checking off tasks in nested to-do lists, the parent list level can become prematurely marked as "complete" even if not all of its subtasks are such.

To reproduce

  1. Make a nested to-do list with many subtasks (e.g. 10):
- [ ] some task:
    - [ ] subtask 1
    - [ ] subtask 2
    - [ ] subtask 3
    - [ ] subtask 4
    - [ ] subtask 5
    - [ ] subtask 6
    - [ ] subtask 7
    - [ ] subtask 8
    - [ ] subtask 9
    - [ ] subtask 10 
  1. Tick off subtasks and at the 8th subtask completed, the parent task is incorrectly marked as done
- [X] some task:
    - [X] subtask 1
    - [X] subtask 2
    - [X] subtask 3
    - [X] subtask 4
    - [X] subtask 5
    - [X] subtask 6
    - [X] subtask 7
    - [X] subtask 8
    - [ ] subtask 9
    - [ ] subtask 10 

Expected behaviour

I feel the parent task should remain at the final "partially complete" state until reaching 100% of its subtasks being completed. If I understand correctly this is what the authors mean it to do as well, since the documentation states as such.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions