Skip to content

Commit

Permalink
fix(radio): spread other props to correct component
Browse files Browse the repository at this point in the history
  • Loading branch information
jigsawye committed Feb 13, 2019
1 parent ebb02cb commit 706ffcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Radio/Radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const Radio: FunctionComponent<IRadioProps> & {
const { _onChange, _isChecked, direction } = useContext(RadioContext);

return (
<RadioLabel disabled={disabled} direction={direction} {...props}>
<RadioLabel disabled={disabled} direction={direction}>
<RadioWrapper>
<StyledRadio
disabled={disabled}
Expand All @@ -146,6 +146,7 @@ const Radio: FunctionComponent<IRadioProps> & {
_onChange(value);
}
}}
{...props}
/>
<RadioInner />
</RadioWrapper>
Expand Down

0 comments on commit 706ffcb

Please sign in to comment.