Unwanted Behavior when one checkbox is checked
Open
- 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
Assessment
This issue has not been assessed yet.