meteor / meteor/blaze-tutorial

Hide Completed/Show All has a bug and its fix

Open Beginner friendly
#28 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11
Forks
33
PR merge metrics
No merged PRs in 30d

Description

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:
``
or similar code,
Mention:
` {{#if isChecked}}

{{else}}

{{/if}}`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in imports/ui/Task.html, where the task checkbox is rendered. Reproduce the Hide Completed/Show All steps from the issue, then inspect how isChecked controls the checkbox state. Done means a previously checked task remains visibly checked after it is shown again and the pending count matches.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.