Skip to content

Commit

Permalink
Fixes Autocomplete input erroring when combobox input is cleared (#8501)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored Sep 10, 2024
1 parent 80a8a47 commit ca46823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Form/FormFields/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export const Autocomplete = <T, V>(props: AutocompleteProps<T, V>) => {
immediate
disabled={props.disabled}
value={(value ?? props.placeholder ?? "Select") as T}
onChange={(selection: any) => props.onChange(selection.value)}
onChange={(selection: any) => props.onChange(selection?.value)}
>
<div className="relative">
<div className="flex">
Expand Down

0 comments on commit ca46823

Please sign in to comment.