Skip to content

Commit

Permalink
Merge pull request #2049 from SpareBank1/develop_fix-radio-switch
Browse files Browse the repository at this point in the history
fix(ffe-form-react): selected value no passed from radio switch
  • Loading branch information
pethel authored Jun 3, 2024
2 parents cdba7af + 8a33836 commit 106803f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ffe-form-react/src/RadioSwitch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const RadioSwitch: React.FC<RadioSwitchProps> = ({
ariaInvalid === 'true' &&
(selectedValue === leftValue || noneSelected)
}
selectedValue={selectedValue}
{...rest}
>
{leftLabel}
Expand All @@ -70,6 +71,7 @@ export const RadioSwitch: React.FC<RadioSwitchProps> = ({
ariaInvalid === 'true' &&
(selectedValue === rightValue || noneSelected)
}
selectedValue={selectedValue}
{...rest}
>
{rightLabel}
Expand Down

0 comments on commit 106803f

Please sign in to comment.