Browse Source

fix checkbox and radio empty span

pull/1420/head
afc163 9 years ago
parent
commit
e59715f98d
  1. 2
      components/checkbox/index.jsx
  2. 2
      components/radio/radio.jsx

2
components/checkbox/index.jsx

@ -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>
);
}

2
components/radio/radio.jsx

@ -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…
Cancel
Save