Skip to content

Commit

Permalink
feat(Radio): Add Group Radio styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 27, 2018
1 parent 4a42b6f commit 63f1cf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/radio/RadioGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class RadioGroup extends Component {
return option.value;
}
render() {
const { prefixCls, options } = this.props;
const { prefixCls, options, className, ...other } = this.props;

let children = this.props.children;

Expand All @@ -41,7 +41,7 @@ export default class RadioGroup extends Component {
}

return (
<div className={this.classNames(`${prefixCls}`)}>
<div {...other} className={this.classNames(`${prefixCls}`, className)}>
{
React.Children.map(children, (element) => {
return React.cloneElement(element, Object.assign({}, element.props, {
Expand Down

0 comments on commit 63f1cf6

Please sign in to comment.