mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-22 19:44:21 +00:00
🐛 Add missing key
prop to Select.Option
and Multiselect.Option
This commit is contained in:
parent
34e924edc0
commit
5dba1dd72f
2 changed files with 2 additions and 2 deletions
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue