Skip to main content
Version: Current (v7.0.0-beta.3)

The daisyUI radio and checkboxes widgets name their group from presentation

Detect​

  • A custom field under @rjsf/daisyui that renders registry.widgets.CheckboxesWidget or registry.widgets.RadioWidget without passing the presentation prop it received.
  • On the rendered page, or in an accessibility test, that checkbox group has no accessible name, or a radio group is named by something other than the field's label.

Change​

The radio and checkboxes widgets are core's. CheckboxesWidget names its group from the field's presentation alone, so without it the group is unnamed. RadioWidget without it is named by the label you hand it, else its placeholder, else a generic prompt. The theme's own widgets pointed the group at the FieldTemplate's label. Pass presentation on:

const { CheckboxesWidget } = registry.widgets;
return (
<CheckboxesWidget
{...widgetProps}
+ presentation={props.presentation}
/>
);

Verify​

  • The checkbox or radio group's accessible name is the field's label.

Also read: