diff --git a/components/select/demo/search-box.md b/components/select/demo/search-box.md index 3f74688c71..dba8878bad 100644 --- a/components/select/demo/search-box.md +++ b/components/select/demo/search-box.md @@ -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} diff --git a/components/select/index.tsx b/components/select/index.tsx index 5762019585..7c7c6faa41 100755 --- a/components/select/index.tsx +++ b/components/select/index.tsx @@ -134,8 +134,9 @@ export default class Select extends React.Component { combobox: isCombobox, }; + // AutoComplete don't have notFoundContent defaultly const notFoundContentLocale = isCombobox ? - null : notFoundContent || locale.notFoundContent; + (notFoundContent || '') : (notFoundContent || locale.notFoundContent); return (