Skip to content

Hide Completed/Show All has a bug and its fix #28

Open
@bhushitjoshipura

Description

@bhushitjoshipura

Hide Completed/Show All as shown in tutorial has a bug.

  1. Check a task
  2. Press "Hide Completed"
  3. The task doesn't show
  4. Press "Show all"
  5. The task shows up
  6. Bad, current behavior: The task checkbox is displayed unchecked, leading the user to think the task is not checked - and mismatches unchecked tasks with the pending count (by one, in this case)
  7. Correct, future behavior: The task checkbox is checked

The fix lies in imports/ui/Task.html
Instead of:
<input type="checkbox" class="toggle-checked" />
or similar code,
Mention:
{{#if isChecked}} <input type="checkbox" checked class="toggle-checked"/> {{else}} <input type="checkbox" class="toggle-checked" /> {{/if}}

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