github / github/check-all

Unwanted Behavior when one checkbox is checked

Open
#59 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
89
Forks
19
Avg merge
2d 8h
Merged PRs (30d)
5

Description

Code automatically checked the "check-all" box if any one of the checkboxes is checked (line 87 in src/index.ts)

Proposed change: replace with the following if statement

if ((total - count) == 0) {
setChecked(target, allCheckbox, checked, indeterminate);
}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.