From be5d091590e63d98bf5e657616ad11ce26c849cf Mon Sep 17 00:00:00 2001 From: meenakshi-deriv Date: Thu, 22 Aug 2024 15:42:05 +0400 Subject: [PATCH] build: updated value for def option --- lib/components/Input/dropdown-field/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/components/Input/dropdown-field/index.tsx b/lib/components/Input/dropdown-field/index.tsx index 0b8752c6..26c6b8a4 100644 --- a/lib/components/Input/dropdown-field/index.tsx +++ b/lib/components/Input/dropdown-field/index.tsx @@ -136,9 +136,7 @@ export const InputDropdown = forwardRef( onKeyDown={() => setShouldFilterList(true)} readOnly={!isAutocomplete} type="select" - value={ - selectedItem ? reactNodeToString(selectedItem.text) : "" - } + value={selectedItem?.value} {...getInputProps()} {...rest} />