Skip to content

Commit

Permalink
fix: add missing onInput to Autocomplete (#1757)
Browse files Browse the repository at this point in the history
fix: added missing onInputChange to Autocomplete
  • Loading branch information
KevinGhadyani-Okta authored Apr 28, 2023
1 parent bb8e1d1 commit 9d6c628
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/odyssey-react-mui/src/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ export type AutocompleteProps<
undefined,
IsCustomValueAllowed
>["onChange"];
onInputChange?: MuiAutocompleteProps<
OptionType,
HasMultipleChoices,
undefined,
IsCustomValueAllowed
>["onInputChange"];
options: MuiAutocompleteProps<
OptionType,
HasMultipleChoices,
Expand Down Expand Up @@ -89,6 +95,7 @@ const Autocomplete = <
hint,
label,
onChange,
onInputChange,
options,
value,
}: AutocompleteProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>) => {
Expand Down Expand Up @@ -119,6 +126,7 @@ const Autocomplete = <
loading={isLoading}
multiple={hasMultipleChoices}
onChange={onChange}
onInputChange={onInputChange}
options={options}
readOnly={isReadOnly}
renderInput={renderInput}
Expand Down

0 comments on commit 9d6c628

Please sign in to comment.