Skip to content

Commit

Permalink
Merge Fix defaultvalue of checkbox (#141)
Browse files Browse the repository at this point in the history
Closes #68
  • Loading branch information
MiraGeowerkstatt authored Jul 28, 2022
2 parents f56804b + 00ab38f commit 0b3b96b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ClientApp/src/components/StandortForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ export default function StandortForm(props) {
<Controller
name="freigabeAfu"
control={control}
value={currentStandort.freigabeAfu || false}
defaultValue={currentStandort.freigabeAfu}
value={currentStandort.freigabeAfu}
render={({ field: { value, ref, ...field } }) => (
<Checkbox {...field} inputRef={ref} checked={value} />
)}
Expand Down

0 comments on commit 0b3b96b

Please sign in to comment.