Fix notFoundContent not working in AutoComplete, close #8553

This commit is contained in:
afc163 2017-12-13 17:05:36 +08:00
parent 0eac8aa1c6
commit 8f1fd4d68b
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,6 @@ class SearchInput extends React.Component {
mode="combobox"
value={this.state.value}
placeholder={this.props.placeholder}
notFoundContent=""
style={this.props.style}
defaultActiveFirstOption={false}
showArrow={false}

View File

@ -134,8 +134,9 @@ export default class Select extends React.Component<SelectProps, {}> {
combobox: isCombobox,
};
// AutoComplete don't have notFoundContent defaultly
const notFoundContentLocale = isCombobox ?
null : notFoundContent || locale.notFoundContent;
(notFoundContent || '') : (notFoundContent || locale.notFoundContent);
return (
<RcSelect
{...restProps}