fix bug combo box

This commit is contained in:
Alihaghighattalab
2024-08-06 16:32:26 +03:30
parent 7d3cf81861
commit 7499180fb1
+3 -3
View File
@@ -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>