mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-23 03:54: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>}
|
label={<FormLabel {...labelProps}>{label}</FormLabel>}
|
||||||
input={
|
input={
|
||||||
<Multiselect onSimpleChange={onSimpleChangeWrapped} {...props}>
|
<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>
|
</Multiselect>
|
||||||
}
|
}
|
||||||
validity={validity}
|
validity={validity}
|
||||||
|
|
|
@ -38,7 +38,7 @@ export function FormSelect({label, validity, options, pairProps, labelProps, onS
|
||||||
label={<FormLabel {...labelProps}>{label}</FormLabel>}
|
label={<FormLabel {...labelProps}>{label}</FormLabel>}
|
||||||
input={
|
input={
|
||||||
<Select onSimpleChange={onSimpleChangeWrapped} {...props}>
|
<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>
|
</Select>
|
||||||
}
|
}
|
||||||
validity={validity}
|
validity={validity}
|
||||||
|
|
Loading…
Reference in a new issue