Skip to content

Commit

Permalink
fixed cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed Jul 8, 2024
1 parent 9c2a352 commit 927f9b3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Components/Form/FormFields/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,15 @@ export const Autocomplete = <T, V>(props: AutocompleteProps<T, V>) => {
>
<Combobox
disabled={props.disabled}
value={value}
value={value ?? props.placeholder ?? "Select"}
onChange={(selection: any) => props.onChange(selection.value)}
>
<div className="relative">
<div className="flex">
<Combobox.Input
className="cui-input-base truncate pr-16"
placeholder={props.placeholder ?? "Select"}
displayValue={(value: any) =>
(value?.label || props.placeholder) ?? "Select"
}
displayValue={(value: any) => value?.label || ""}
onChange={(event) => setQuery(event.target.value.toLowerCase())}
onBlur={() => value && setQuery("")}
autoComplete="off"
Expand Down

0 comments on commit 927f9b3

Please sign in to comment.