Skip to content

Unwanted Behavior when one checkbox is checked #59

@kisfelix

Description

@kisfelix

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions