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" mode="combobox"
value={this.state.value} value={this.state.value}
placeholder={this.props.placeholder} placeholder={this.props.placeholder}
notFoundContent=""
style={this.props.style} style={this.props.style}
defaultActiveFirstOption={false} defaultActiveFirstOption={false}
showArrow={false} showArrow={false}

View File

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