hide notFoundContent when combobox

This commit is contained in:
afc163 2015-08-23 16:00:05 +08:00
parent 4967d9dfef
commit 4a51421bfa

View File

@ -18,8 +18,12 @@ var AntSelect = React.createClass({
sizeClass = 'ant-select-sm';
}
let className = this.props.className || ' ';
let notFoundContent = this.props.notFoundContent;
if (this.props.combobox) {
notFoundContent = null;
}
return (
<Select {...this.props} className={className + sizeClass} />
<Select {...this.props} className={className + sizeClass} notFoundContent={notFoundContent} />
);
}
});