Intermediate fix for CheckedState
I don't really know how to handle this lol
This commit is contained in:
parent
b67845f4e7
commit
dae06b9087
1 changed files with 6 additions and 2 deletions
|
|
@ -13,8 +13,12 @@ interface Props {
|
|||
}
|
||||
|
||||
const SearchFilterCheckboxItem = (props: Props) => {
|
||||
function handleCheckedChange(checked: boolean) {
|
||||
props.onCheckedChange(checked, props.valueKey)
|
||||
function handleCheckedChange(checked: string | boolean) {
|
||||
if (typeof checked === 'boolean') {
|
||||
props.onCheckedChange(checked, props.valueKey)
|
||||
} else {
|
||||
props.onCheckedChange(false, props.valueKey)
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in a new issue