Skip to content

Commit

Permalink
fix(atoms): pass checked attribute to the radio input
Browse files Browse the repository at this point in the history
  • Loading branch information
ej9x committed Dec 3, 2018
1 parent 174a322 commit 40ddd0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/atoms/dataEntry/Radio/RadioItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class RadioItem extends PureComponent<RadioItemProps & RadioItemClonedProps> {
<RadioCircleTag tagName="div" hasError={ hasError }>
<RadioInnerCircleTag tagName="div" color={ color } selected={ checked } disabled={ disabled } />
</RadioCircleTag>
<RadioTag name={ name } tagName="input" type="radio" value={ value } onChange={ this.onChange } />
<RadioTag name={ name } tagName="input" type="radio" onChange={ this.onChange } checked={ checked } />
<If condition={ hasLabel }>
<RadioTextTag tagName="div">{ label }</RadioTextTag>
</If>
Expand Down

0 comments on commit 40ddd0f

Please sign in to comment.