- Go to the add/edit form
- Choose a date, but leave all other required fields blank
- Submit the form; see that error styles have been applied to required fields
- Check the "code of conduct" and "ride comic" checkboxes, leaving the other required fields blank still
- 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.
Result
The
<input>elements correctly changed toaria-invalid="false", but the checkbox labels are still styled in red.Expected result
The
<input>elements correctly changed toaria-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-errorclass is being assigned and removed with actions that aren't symmetrical.