mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
fix: fix Radio children === 0 (#4882)
This commit is contained in:
parent
168c576d4a
commit
7471780ffe
@ -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>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user