1
Fork 0
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:
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>} 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}

View file

@ -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}