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) => {
|
const SearchFilterCheckboxItem = (props: Props) => {
|
||||||
function handleCheckedChange(checked: boolean) {
|
function handleCheckedChange(checked: string | boolean) {
|
||||||
props.onCheckedChange(checked, props.valueKey)
|
if (typeof checked === 'boolean') {
|
||||||
|
props.onCheckedChange(checked, props.valueKey)
|
||||||
|
} else {
|
||||||
|
props.onCheckedChange(false, props.valueKey)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue