Skip to content

Commit 698d913

Browse files
committed
feat: pass through AutoComplete props
1 parent e7a54f7 commit 698d913

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Field/WfsSearchField/WfsSearchField.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { SearchConfig } from '@terrestris/ol-util/dist/WfsFilterUtil/WfsFilterUt
77
import useMap from '@terrestris/react-util/dist/Hooks/useMap/useMap';
88
import { useWfs, WfsQueryArgs } from '@terrestris/react-util/dist/Hooks/useWfs/useWfs';
99
import { AutoComplete, Input, Spin } from 'antd';
10+
import { AutoCompleteProps } from 'antd/lib/auto-complete';
1011
import { DefaultOptionType, OptionProps } from 'antd/lib/select';
1112
import _get from 'lodash/get';
1213
import _isNil from 'lodash/isNil';
@@ -26,7 +27,7 @@ export type WfsSearchFieldProps = {
2627
onBeforeSearch?: (value: string) => string;
2728
onChange?: (val: OlFeature[] | undefined) => undefined;
2829
value?: OlFeature[] | undefined;
29-
} & SearchConfig & Omit<WfsQueryArgs, 'searchConfig' | 'searchTerm'>;
30+
} & SearchConfig & Omit<WfsQueryArgs, 'searchConfig' | 'searchTerm'> & Omit<AutoCompleteProps, 'onChange'>;
3031

3132
const defaultClassName = `${CSS_PREFIX}wfssearch`;
3233

0 commit comments

Comments
 (0)