github / github/check-all

Unwanted Behavior when one checkbox is checked

Offen
#59 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
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

Beitragsleitfaden öffnen

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

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.