fix bug combo box
This commit is contained in:
@@ -29,15 +29,15 @@ export const ComboBox: FC<Props> = ({ field }) => {
|
||||
<Combobox value={field.value} onChange={field.onChange} onClose={() => setQuery('')}>
|
||||
<div className="relative w-full">
|
||||
<ComboboxInput
|
||||
className="input-style"
|
||||
className="input-style min-w-full"
|
||||
displayValue={(person: any) => person?.name}
|
||||
onChange={(event) => setQuery(event.target.value)}
|
||||
ref={field.ref}
|
||||
name={field.name}
|
||||
onBlur={field.onBlur}
|
||||
/>
|
||||
<ComboboxButton className="absolute top-0 h-full bg-transparent">
|
||||
<ArrowDown2 className="size-5 absolute left-3 top-5 p-0 text-secondary-text-color/70" />
|
||||
<ComboboxButton className="absolute top-0 min-w-full h-full bg-transparent">
|
||||
<ArrowDown2 className="size-5 absolute left-5 top-5 p-0 text-secondary-text-color/70" />
|
||||
</ComboboxButton>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user