mirror of
https://github.com/stashapp/stash.git
synced 2025-12-16 20:07:05 +03:00
Send inner props to CheckboxSelect Option (#6411)
Fixes onChange handler not being called
This commit is contained in:
@@ -516,7 +516,10 @@ export const CheckBoxSelect: React.FC<ICheckBoxSelectProps> = ({
|
|||||||
className={`${props.className || ""} ${props.data.className || ""}`}
|
className={`${props.className || ""} ${props.data.className || ""}`}
|
||||||
// data values don't seem to be included in props.innerProps by default
|
// data values don't seem to be included in props.innerProps by default
|
||||||
innerProps={
|
innerProps={
|
||||||
{ "data-value": props.data.value } as React.DetailedHTMLProps<
|
{
|
||||||
|
...props.innerProps,
|
||||||
|
"data-value": props.data.value,
|
||||||
|
} as React.DetailedHTMLProps<
|
||||||
React.HTMLAttributes<HTMLDivElement>,
|
React.HTMLAttributes<HTMLDivElement>,
|
||||||
HTMLDivElement
|
HTMLDivElement
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user