Fix GForm Select dropdowns (#1726)
Return behavior so GForm select drop-down accesses value field instead of using the KeyValuePair.
This commit is contained in:
parent
ed9371d11e
commit
6f11d73f3d
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ function renderFormControl(formItem: FormItem, register: any, control: any, onCh
|
|||
return (
|
||||
<InputControl
|
||||
render={({ field: { ...field } }) => {
|
||||
return <Select {...field} {...formItem.extra} onChange={(value) => onChangeFn(field, value)} />;
|
||||
return <Select {...field} {...formItem.extra} onChange={(value) => onChangeFn(field, value.value)} />;
|
||||
}}
|
||||
control={control}
|
||||
name={formItem.name}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue