Add unique ids to query editor fields (#28376)

* Add unique ids to query editor fields

* Update public/app/plugins/datasource/testdata/components/RandomWalkEditor.tsx

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
Alex Khomenko
2020-10-19 18:56:57 +03:00
committed by GitHub
parent 89d10c706a
commit 1cce13b501
6 changed files with 10 additions and 10 deletions

View File

@ -43,7 +43,7 @@ export const PredictablePulseEditor = ({ onChange, query }: EditorProps) => {
width={32}
type="number"
name={id}
id={`pulseWave.${id}`}
id={`pulseWave.${id}-${query.refId}`}
value={query.pulseWave?.[id as keyof PulseWaveQuery]}
placeholder={placeholder}
onChange={onInputChange}