Skip to content

Commit

Permalink
Register form input on checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
domi-b committed Feb 1, 2024
1 parent c982a40 commit 5466b3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ClientApp/src/components/StandortForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export default function StandortForm(props) {
defaultValue={currentStandort?.freigabeAfu ?? false}
render={({ field }) => (
<Checkbox
{...register("freigabeAfu")}
{...field}
checked={field.value}
onChange={(e) => {
Expand All @@ -202,7 +203,6 @@ export default function StandortForm(props) {
}}
/>
)}
{...register("freigabeAfu")}
/>
}
/>
Expand Down

0 comments on commit 5466b3f

Please sign in to comment.