Skip to content

Commit 8f785e1

Browse files
authored
chore(ui): expose onInputChange from react-select in SelectInput component (#9728)
1 parent 89db8fb commit 8f785e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/ui/src/fields/Select/Input.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export type SelectInputProps = {
3030
readonly localized?: boolean
3131
readonly name: string
3232
readonly onChange?: ReactSelectAdapterProps['onChange']
33+
readonly onInputChange?: ReactSelectAdapterProps['onInputChange']
3334
readonly options?: OptionObject[]
3435
readonly path: string
3536
readonly readOnly?: boolean
@@ -54,6 +55,7 @@ export const SelectInput: React.FC<SelectInputProps> = (props) => {
5455
Label,
5556
localized,
5657
onChange,
58+
onInputChange,
5759
options,
5860
path,
5961
readOnly,
@@ -115,6 +117,7 @@ export const SelectInput: React.FC<SelectInputProps> = (props) => {
115117
isMulti={hasMany}
116118
isSortable={isSortable}
117119
onChange={onChange}
120+
onInputChange={onInputChange}
118121
options={options.map((option) => ({
119122
...option,
120123
label: getTranslation(option.label, i18n),

0 commit comments

Comments
 (0)