mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
hide notFoundContent when combobox
This commit is contained in:
parent
4967d9dfef
commit
4a51421bfa
@ -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} />
|
||||
);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user