@ -17,7 +17,7 @@ export default class Checkbox extends React.Component {
return (
<label className={classString} style={style}>
<RcCheckbox {...restProps} prefixCls={prefixCls} children={null} />
<span>{children}</span>
{children ? <span>{children}</span> : null}
</label>
);
}
@ -17,7 +17,7 @@ export default class Radio extends React.Component {
<RcRadio {...this.props} style={null} children={null} />