mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
fix checkbox and radio empty span
This commit is contained in:
parent
be39bca93a
commit
e59715f98d
@ -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 {
|
||||
return (
|
||||
<label className={classString} style={style}>
|
||||
<RcRadio {...this.props} style={null} children={null} />
|
||||
<span>{children}</span>
|
||||
{children ? <span>{children}</span> : null}
|
||||
</label>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user