fix: fix Radio children === 0 (#4882)

This commit is contained in:
HQidea 2017-02-16 10:00:00 +08:00 committed by Benjy Cui
parent 168c576d4a
commit 7471780ffe

View File

@ -49,7 +49,7 @@ export default class Radio extends React.Component<RadioProps, any> {
onMouseLeave={this.props.onMouseLeave}
>
<RcRadio {...this.props} className={classString} style={null} children={null} />
{children ? <span>{children}</span> : null}
{children !== undefined ? <span>{children}</span> : null}
</label>
);
}