From 1a099d444ebf177fa78b90e120744e3683509e4e Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:01:49 +0100 Subject: [PATCH] [v11.0.x] Templating: Link label to input (#86349) Templating: Link label to input (#85329) Pass id to VariableInput (cherry picked from commit a44aa342a7c4fbe88b33c63210a5ae6ebd3acbe5) Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com> --- public/app/features/variables/pickers/shared/VariableInput.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/features/variables/pickers/shared/VariableInput.tsx b/public/app/features/variables/pickers/shared/VariableInput.tsx index 78a4898ce17..423254ec0ca 100644 --- a/public/app/features/variables/pickers/shared/VariableInput.tsx +++ b/public/app/features/variables/pickers/shared/VariableInput.tsx @@ -34,6 +34,7 @@ export class VariableInput extends PureComponent { instance.setAttribute('style', `width:${Math.max(instance.width, 150)}px`); } }} + id={id} type="text" className="gf-form-input" value={value ?? ''}