mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
Fix notFoundContent not working in AutoComplete, close #8553
This commit is contained in:
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…
Reference in New Issue
Block a user