Required radio buttons don't display "This field is required."
Overview
Clicking the Submit button on a form containing a required radio button with no options selected has no apparent effect -- no submission, and no "This field is required." message.
Reproduction steps
- Add a radio button control (with no default defined) to a profile and add the profile to an event.
- On the event registration page, click Submit without selecting any of the radio button options.
Current behaviour
There is no change to the displayed page.
Expected behaviour
"This field is required." is displayed under the radio button options.
Environment information
- CiviCRM: 5.72.1
Comments
Will submit a PR shortly.