diff --git a/package.json b/package.json index 4cff220..77c81a3 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "react", "typescript" ], - "version": "2.3.3", + "version": "2.3.4", "main": "./dist/index.cjs.js", "module": "./dist/index.esm.js", "types": "./dist/index.d.ts", diff --git a/src/components/molecules/Fields/AsyncSelect/AsyncSelect.tsx b/src/components/molecules/Fields/AsyncSelect/AsyncSelect.tsx index 66623f5..d8cccc5 100644 --- a/src/components/molecules/Fields/AsyncSelect/AsyncSelect.tsx +++ b/src/components/molecules/Fields/AsyncSelect/AsyncSelect.tsx @@ -21,10 +21,11 @@ export type AsyncSelectProps = { error?: string | undefined | null | 'generic_error' noOptionsMessage: string isMulti?: boolean - loadOptions: (inputValue: string) => Promise + loadOptions: (inputValue?: string | undefined) => Promise defaultOptions?: AsyncSelectOption[] debounceTime?: number isClearable?: boolean + isSearchable?: boolean name: Path label: string @@ -44,6 +45,7 @@ const AsyncSelect = (props: AsyncSelectProps(props: AsyncSelectProps noOptionsMessage} /> ) @@ -200,7 +202,7 @@ const AsyncSelect = (props: AsyncSelectProps noOptionsMessage} /> ) @@ -219,6 +221,7 @@ AsyncSelect.defaultProps = { defaultOptions: undefined, debounceTime: 700, isClearable: true, + isSearchable: true, placeholder: undefined, isMulti: undefined, reactSelectProps: undefined,