From 08115e4e8f05f73e56f8983fc93dc1c816b5b277 Mon Sep 17 00:00:00 2001 From: Allan Oliveira Date: Mon, 18 Sep 2023 21:38:46 -0300 Subject: [PATCH] feat: up --- package.json | 2 +- .../molecules/Fields/AsyncSelect/AsyncSelect.tsx | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) 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,