From 09fec16b6f269dea3be8a9187cde89b301c74b5d Mon Sep 17 00:00:00 2001 From: Pierre Date: Mon, 16 Apr 2018 11:42:31 +0200 Subject: [PATCH] [TS] AutoComplete : Make dataSource optional (#10077) When using children : https://ant.design/components/auto-complete/#components-auto-complete-demo-options --- components/auto-complete/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/auto-complete/index.tsx b/components/auto-complete/index.tsx index bdef65ed05..0b68cad89b 100755 --- a/components/auto-complete/index.tsx +++ b/components/auto-complete/index.tsx @@ -21,7 +21,7 @@ export type ValidInputElement = export interface AutoCompleteProps extends AbstractSelectProps { value?: SelectValue; defaultValue?: SelectValue; - dataSource: DataSourceItemType[]; + dataSource?: DataSourceItemType[]; optionLabelProp?: string; onChange?: (value: SelectValue) => void; onSelect?: (value: SelectValue, option: Object) => any;