1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 11:34:21 +00:00

🐛 Add missing key prop to Select.Option and Multiselect.Option

This commit is contained in:
Steffo 2021-10-11 17:29:02 +02:00
parent 34e924edc0
commit 5dba1dd72f
Signed by: steffo
GPG key ID: 6965406171929D01
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ export function FormMultiselect({label, validity, pairProps, labelProps, onSimpl
label={<FormLabel {...labelProps}>{label}</FormLabel>}
input={
<Multiselect onSimpleChange={onSimpleChangeWrapped} {...props}>
{Object.keys(options).map(key => <Multiselect.Option value={key}/>)}
{Object.keys(options).map(key => <Multiselect.Option value={key} key={key}/>)}
</Multiselect>
}
validity={validity}

View file

@ -38,7 +38,7 @@ export function FormSelect({label, validity, options, pairProps, labelProps, onS
label={<FormLabel {...labelProps}>{label}</FormLabel>}
input={
<Select onSimpleChange={onSimpleChangeWrapped} {...props}>
{Object.keys(options).map(key => <Select.Option value={key}/>)}
{Object.keys(options).map(key => <Select.Option value={key} key={key}/>)}
</Select>
}
validity={validity}