Fix uncontrolled to controlled input change
This commit is contained in:
parent
cdbca458da
commit
35624d3008
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ export const ControlledCheckbox: React.FC<ControlledCheckboxProps> = ({
|
|||
disabled={disabled}
|
||||
control={
|
||||
<Checkbox
|
||||
checked={checked}
|
||||
checked={!!checked}
|
||||
disabled={disabled}
|
||||
name={name}
|
||||
onChange={() => onChange({ target: { name, value: !checked } })}
|
||||
|
|
Loading…
Reference in a new issue