Skip to content

Commit

Permalink
chore(ui): expose onInputChange from react-select in SelectInput comp…
Browse files Browse the repository at this point in the history
…onent (#9728)
  • Loading branch information
paulpopus authored Dec 5, 2024
1 parent 89db8fb commit 8f785e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ui/src/fields/Select/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export type SelectInputProps = {
readonly localized?: boolean
readonly name: string
readonly onChange?: ReactSelectAdapterProps['onChange']
readonly onInputChange?: ReactSelectAdapterProps['onInputChange']
readonly options?: OptionObject[]
readonly path: string
readonly readOnly?: boolean
Expand All @@ -54,6 +55,7 @@ export const SelectInput: React.FC<SelectInputProps> = (props) => {
Label,
localized,
onChange,
onInputChange,
options,
path,
readOnly,
Expand Down Expand Up @@ -115,6 +117,7 @@ export const SelectInput: React.FC<SelectInputProps> = (props) => {
isMulti={hasMany}
isSortable={isSortable}
onChange={onChange}
onInputChange={onInputChange}
options={options.map((option) => ({
...option,
label: getTranslation(option.label, i18n),
Expand Down

0 comments on commit 8f785e1

Please sign in to comment.