Fix notFoundContent not working in AutoComplete, close #8553

pull/8589/head
afc163 7 years ago
parent 0eac8aa1c6
commit 8f1fd4d68b

@ -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}

@ -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}

Loading…
Cancel
Save