Unwanted Behavior when one checkbox is checked
Offen
- Vorherrschende Sprache
- JavaScript
- Sterne
- 89
- Forks
- 19
- Ø Merge
- 2 T. 8 Std.
- Gemergte PRs (30 T.)
- 5
Beschreibung
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);
}
Beitragsleitfaden
Rechercherichtung
Start at line 87 in src/index.ts and inspect how the total and checked counts determine the check-all state. Change the condition so the check-all box is set only when all checkboxes are checked, then verify that selecting one checkbox no longer checks it while selecting all still does.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 55/100