Skip to content

Commit

Permalink
Merge pull request #17433 from ant-design/omit-loading
Browse files Browse the repository at this point in the history
fix: Omit AutoComplete loading type
  • Loading branch information
afc163 committed Jul 3, 2019
2 parents 73d173d + 0d35b1e commit 1dff6bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/auto-complete/index.tsx
Expand Up @@ -5,6 +5,7 @@ import InputElement from './InputElement';
import Input, { InputProps } from '../input';
import Select, { AbstractSelectProps, SelectValue, OptionProps, OptGroupProps } from '../select';
import { ConfigConsumer, ConfigConsumerProps } from '../config-provider';
import { Omit } from '../_util/type';

export interface DataSourceItemObject {
value: string;
Expand All @@ -26,7 +27,7 @@ export type ValidInputElement =
| HTMLTextAreaElement
| React.ReactElement<AutoCompleteInputProps>;

export interface AutoCompleteProps extends AbstractSelectProps {
export interface AutoCompleteProps extends Omit<AbstractSelectProps, 'loading'> {
value?: SelectValue;
defaultValue?: SelectValue;
dataSource?: DataSourceItemType[];
Expand Down

0 comments on commit 1dff6bf

Please sign in to comment.