From 6f11d73f3d60dfa9c8ec73e23cdb7e4d1b30744e Mon Sep 17 00:00:00 2001 From: Michael Derynck Date: Wed, 12 Apr 2023 07:28:17 -0600 Subject: [PATCH] Fix GForm Select dropdowns (#1726) Return behavior so GForm select drop-down accesses value field instead of using the KeyValuePair. --- grafana-plugin/src/components/GForm/GForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grafana-plugin/src/components/GForm/GForm.tsx b/grafana-plugin/src/components/GForm/GForm.tsx index 2a9ddcdd..a60cf941 100644 --- a/grafana-plugin/src/components/GForm/GForm.tsx +++ b/grafana-plugin/src/components/GForm/GForm.tsx @@ -50,7 +50,7 @@ function renderFormControl(formItem: FormItem, register: any, control: any, onCh return ( { - return onChangeFn(field, value.value)} />; }} control={control} name={formItem.name}