Skip to content

Commit

Permalink
fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ThieryMichel committed Dec 11, 2019
1 parent cbfbd57 commit ee1b590
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const RadioButtonGroupInputItem = ({
const label = getChoiceText(choice);
const value = getChoiceValue(choice);
const {
input: { type, onChange, ...inputProps },
input: { type, ...inputProps },
} = useField(source, {
type: 'radio',
value,
Expand All @@ -37,7 +37,7 @@ const RadioButtonGroupInputItem = ({
id={nodeId}
color="primary"
{...inputProps}
onChange={() => onChange(value)}
onChange={(_, isActive) => isActive && onChange(value)}
/>
}
/>
Expand Down

0 comments on commit ee1b590

Please sign in to comment.