Skip to content

.invalid class not toggled correctly in atomic groups #26

@bboyle

Description

@bboyle

Improve handling of .invalid class for atomic groups.

After submit, .invalid is applied to invalid questions and groups within a form.

If an atomic group is valid at submit, the group is not classed as .invalid (this is correct)
If an invalid entry is made within the group, the question is classed as .invalid (this is correct)
If an invalid entry is made within the group, the group is not classed as .invalid (this is INCORRECT)

If an atomic group is valid at submit, the group is classed as .invalid (this is correct)
If an invalid entry is corrected, the question is no longer classed as .invalid (this is correct)
If all invalid entries are corrected, the group is no longer classed as .invalid (this is correct)
If an invalid entry is corrected, but invalid questions remain, the group is no longer classed as .invalid (this is INCORRECT)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions