Skip to content

Commit

Permalink
feat: pass through AutoComplete props
Browse files Browse the repository at this point in the history
  • Loading branch information
simonseyock committed May 15, 2024
1 parent e7a54f7 commit 698d913
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Field/WfsSearchField/WfsSearchField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { SearchConfig } from '@terrestris/ol-util/dist/WfsFilterUtil/WfsFilterUt
import useMap from '@terrestris/react-util/dist/Hooks/useMap/useMap';
import { useWfs, WfsQueryArgs } from '@terrestris/react-util/dist/Hooks/useWfs/useWfs';
import { AutoComplete, Input, Spin } from 'antd';
import { AutoCompleteProps } from 'antd/lib/auto-complete';
import { DefaultOptionType, OptionProps } from 'antd/lib/select';
import _get from 'lodash/get';
import _isNil from 'lodash/isNil';
Expand All @@ -26,7 +27,7 @@ export type WfsSearchFieldProps = {
onBeforeSearch?: (value: string) => string;
onChange?: (val: OlFeature[] | undefined) => undefined;
value?: OlFeature[] | undefined;
} & SearchConfig & Omit<WfsQueryArgs, 'searchConfig' | 'searchTerm'>;
} & SearchConfig & Omit<WfsQueryArgs, 'searchConfig' | 'searchTerm'> & Omit<AutoCompleteProps, 'onChange'>;

const defaultClassName = `${CSS_PREFIX}wfssearch`;

Expand Down

0 comments on commit 698d913

Please sign in to comment.