Skip to content

Commit

Permalink
Fix issue with BosituasjonForm onChange not resetting erEPSUførFlyktn…
Browse files Browse the repository at this point in the history
…ing value
  • Loading branch information
RamziAbuQassim committed May 15, 2024
1 parent ace9784 commit af02688
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ const BosituasjonForm = (props: Props) => {
legend="Er ektefelle/samboer fylt 67?"
error={fieldState.error?.message}
{...field}
onChange={(e) => {
field.onChange(e);
props.form.setValue(
`${nameAndIdx}.erEPSUførFlyktning`,
null,
);
}}
/>
)}
/>
Expand Down

0 comments on commit af02688

Please sign in to comment.