update combobox optionLabelProp to value (#1579)

This commit is contained in:
afc163 2016-05-04 20:31:12 +08:00
parent 7ba53e77d2
commit a5a79ceebf

View File

@ -16,7 +16,7 @@ export default class Select extends React.Component {
render() {
let {
size, className, combobox, notFoundContent, prefixCls, showSearch,
size, className, combobox, notFoundContent, prefixCls, showSearch, optionLabelProp,
} = this.props;
const cls = classNames({
@ -28,11 +28,14 @@ export default class Select extends React.Component {
if (combobox) {
notFoundContent = null;
// children dom
optionLabelProp = 'value';
}
return (
<RcSelect {...this.props}
className={cls}
optionLabelProp={optionLabelProp}
notFoundContent={notFoundContent} />
);
}