Fix checkbox bug
This commit is contained in:
parent
4c4a335e1d
commit
298fa8de87
1 changed files with 1 additions and 0 deletions
|
@ -146,6 +146,7 @@ export default function App() {
|
||||||
control={control}
|
control={control}
|
||||||
name="consent_given"
|
name="consent_given"
|
||||||
rules={{ validate: (value) => value }}
|
rules={{ validate: (value) => value }}
|
||||||
|
defaultValue={false}
|
||||||
render={({
|
render={({
|
||||||
field: { onChange, value },
|
field: { onChange, value },
|
||||||
fieldState: { invalid },
|
fieldState: { invalid },
|
||||||
|
|
Reference in a new issue