🚸 Make full checkbox-container clickable

This commit is contained in:
Philipp Stracker 2025-01-24 12:36:21 +01:00
parent f5be7481fa
commit cb9f185d71
No known key found for this signature in database

View file

@ -49,10 +49,12 @@ const OptionItem = ( {
} ) => {
const boxClassName = classNames( 'ppcp-r-select-box', {
'ppcp--selected': isSelected,
'ppcp--multiselect': isMulti,
} );
return (
<div className={ boxClassName }>
// eslint-disable-next-line jsx-a11y/label-has-associated-control -- label has a nested input control.
<label className={ boxClassName }>
<InputField
value={ itemValue }
isRadio={ ! isMulti }
@ -75,7 +77,7 @@ const OptionItem = ( {
) }
</div>
</div>
</div>
</label>
);
};