Browse Source

update combobox optionLabelProp to value (#1579)

pull/1583/head
afc163 9 years ago
parent
commit
a5a79ceebf
  1. 5
      components/select/index.jsx

5
components/select/index.jsx

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

Loading…
Cancel
Save