Skip to content

Commit c5a250c

Browse files
Merge pull request #123 from marcelblijleven/bugfix/form-issues
Bugfix/form issues
2 parents 44c9e7c + 0fd1272 commit c5a250c

File tree

7 files changed

+136
-194
lines changed

7 files changed

+136
-194
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@radix-ui/react-popper": "^1.1.3",
3232
"@radix-ui/react-progress": "^1.0.3",
3333
"@radix-ui/react-scroll-area": "^1.0.5",
34-
"@radix-ui/react-select": "^1.2.2",
34+
"@radix-ui/react-select": "^2.0.0",
3535
"@radix-ui/react-separator": "^1.0.3",
3636
"@radix-ui/react-slider": "^1.1.2",
3737
"@radix-ui/react-slot": "^1.0.2",

pnpm-lock.yaml

Lines changed: 8 additions & 107 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/forms/bean-information-form/form.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,13 @@ export default function BeanInformationForm() {
111111
{fields.map((field, index) => (
112112
<>
113113
<VarietyInformationFieldset<beanInformationFormSchema>
114-
key={field.id} field={field}
114+
key={field.id}
115+
field={field}
115116
index={index}
116117
form={form}
117118
remove={remove}
118119
/>
119-
{index !== fields.length - 1 && <Separator />}
120+
{index !== fields.length - 1 && <Separator key={`sep-${field.id}`} />}
120121
</>
121122
))}
122123
{blend === "BLEND" && (<Button onClick={(event) => {

src/components/forms/inputs/select-input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function SelectInput<TFieldValues extends FieldValues = FieldValu
2020
render={({ field }) => (
2121
<FormItem>
2222
<FormLabel>{props.label}</FormLabel>
23-
<Select onValueChange={field.onChange} defaultValue={props.default}>
23+
<Select {...field} onValueChange={field.onChange} defaultValue={props.default}>
2424
<FormControl>
2525
<SelectTrigger className={"capitalize text-base"}>
2626
<SelectValue className={"capitalize text-base"} placeholder="Select an option" />

0 commit comments

Comments
 (0)