diff --git a/packages/react-ui-kit/src/Form/Select.tsx b/packages/react-ui-kit/src/Form/Select.tsx index 1fdeda3b35..1a82cf975c 100644 --- a/packages/react-ui-kit/src/Form/Select.tsx +++ b/packages/react-ui-kit/src/Form/Select.tsx @@ -31,16 +31,17 @@ import type {Theme} from '../Layout'; import InputLabel from './InputLabel'; export type Option = { - value: string | number; + value: string; label: string; description?: string; isDisabled?: boolean; }; -interface SelectProps extends StateManagerProps { +interface SelectProps extends Omit, 'onChange'> { id: string; dataUieName: string; options: Option[]; + onChange: (value: Option) => void; wrapperCSS?: CSSObject; label?: string; helperText?: string; @@ -58,6 +59,7 @@ export const Select = ({ dataUieName, options, isMulti, + onChange, wrapperCSS = {}, markInvalid = false, required = false, @@ -94,6 +96,7 @@ export const Select = ({ ValueContainer, IndicatorsContainer, }} + onChange={onChange} hideSelectedOptions={false} isSearchable={false} isClearable={false}