Merge pull request #2243 from vale981/fix_select_label

Fix labeling in select component.
This commit is contained in:
Sacha Greif 2019-03-11 14:27:58 +09:00 committed by GitHub
commit a3523e40e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ const SelectComponent = ({ refFunction, inputProperties, itemProperties, datatyp
<Components.FormItem path={inputProperties.path} label={inputProperties.label} {...itemProperties}>
<Form.Control as="select" {...inputProperties} ref={refFunction}>
{options.map((option, i) => (
<option key={i} {...option}>{option.value}</option>
<option key={i} {...option}>{option.label}</option>
))}
</Form.Control>
</Components.FormItem>