fix: update design for select component and remove placeholders

This commit is contained in:
Christel Westerberg
2024-12-11 15:02:47 +01:00
parent 241e354fc5
commit ed3879f6d2
10 changed files with 97 additions and 74 deletions

View File

@@ -9,8 +9,8 @@ export default function Select({
className,
items,
label,
disabled,
name,
placeholder,
registerOptions = {},
}: SelectProps) {
const { control } = useFormContext()
@@ -24,14 +24,13 @@ export default function Select({
<ReactAriaSelect
className={className}
defaultSelectedKey={field.value}
disabled={field.disabled}
disabled={disabled || field.disabled}
items={items}
label={label}
aria-label={label}
name={field.name}
onBlur={field.onBlur}
onSelect={field.onChange}
placeholder={placeholder}
value={field.value}
data-testid={name}
/>