mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
Merge pull request #1822 from RaoHai/checkboxZeroChildren
Checkbox will show its label while label equals number 0.
This commit is contained in:
commit
ae7476a3f9
@ -17,7 +17,7 @@ export default class Checkbox extends React.Component {
|
||||
return (
|
||||
<label className={classString} style={style}>
|
||||
<RcCheckbox {...restProps} prefixCls={prefixCls} children={null} />
|
||||
{children ? <span>{children}</span> : null}
|
||||
{children !== undefined ? <span>{children}</span> : null}
|
||||
</label>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user