bbc / simorgh

The BBC's Open Source Web Application. Contributions welcome! Used on some of our biggest websites, e.g.
https://www.bbc.com/pidgin
Other
1.41k stars 224 forks source link

WSTEAM1: Extends onBlur handleFocusOut to checkbox #11789

Closed Isabella-Mitchell closed 3 months ago

Isabella-Mitchell commented 3 months ago

Resolves JIRA [number]

Overall changes

Fixes issue with required checkbox on form when error message does not disappear after error is resolved.

Code changes

Extends onBlur handleFocusOut behaviour to checkbox.

Testing

  1. Visit form with required checkbox, e.g. http://localhost.bbc.com:7081/somali/send/u130092370?renderer_env=test
  2. Press submit to see validation errors
  3. Fix checkbox validation error
  4. See error message disappear.

Helpful Links

Add Links to useful resources related to this PR if applicable.

Coding Standards

Repository use guidelines