Send inner props to CheckboxSelect Option (#6411)

Fixes onChange handler not being called
This commit is contained in:
WithoutPants
2025-12-15 08:45:28 +11:00
committed by GitHub
parent f64cd5bfac
commit 7a8a2c7687

View File

@@ -516,7 +516,10 @@ export const CheckBoxSelect: React.FC<ICheckBoxSelectProps> = ({
className={`${props.className || ""} ${props.data.className || ""}`}
// data values don't seem to be included in props.innerProps by default
innerProps={
{ "data-value": props.data.value } as React.DetailedHTMLProps<
{
...props.innerProps,
"data-value": props.data.value,
} as React.DetailedHTMLProps<
React.HTMLAttributes<HTMLDivElement>,
HTMLDivElement
>