creatable应该不影响 searchable

This commit is contained in:
liaoxuezhi 2019-11-08 12:58:53 +08:00
parent 70d034460c
commit af4b3bc98a
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ export default class SelectControl extends React.Component<SelectProps, any> {
isEffectiveApi(autoComplete) ? this.loadRemote : undefined
}
creatable={creatable}
searchable={autoComplete || creatable ? true : searchable}
searchable={searchable || !!autoComplete}
onChange={this.changeValue}
loading={loading}
noResultsText={noResultsText}