Skip to content

Add/edit form - error styles persist on the terms checkboxes even after correcting the errors #491

Description

@carrythebanner
  1. Go to the add/edit form
  2. Choose a date, but leave all other required fields blank
  3. Submit the form; see that error styles have been applied to required fields
  4. Check the "code of conduct" and "ride comic" checkboxes, leaving the other required fields blank still
  5. Submit the form again

Result

The <input> elements correctly changed to aria-invalid="false", but the checkbox labels are still styled in red.

Expected result

The <input> elements correctly changed to aria-invalid="false", and the checkbox labels have reverted their default, non-error state.

Note

See /site/themes/s2b_hugo_theme/static/js/cal/addevent.js#L186 and #L129. The has-error class is being assigned and removed with actions that aren't symmetrical.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions