Open
Description
I noticed that when Select.Item value={1} then the item is not selected. My assumption is that it registers as bool. As soon as I convert to String it is fine.
<Select.Item key={opt.value} value={String(opt.value)}>
<Select.Root
key={field.name}
value={data[field.name]}
name={field.name}
onValueChange={(value) => setData(field.name, value)}
>
<Select.Trigger placeholder={field.placeholder} />
<Select.Content>
{field.options.map((opt) => (
<Select.Item key={opt.value} value={opt.value}> // Registers as bool for int 1?
<span className="capitalize">{opt.label}</span>
</Select.Item>
))}
</Select.Content>
</Select.Root>
Metadata
Metadata
Assignees
Labels
No labels