Commit 12211e4a by Dominik Prokop Committed by GitHub

Influx: Make variable query editor input uncontrolled (#29968)

parent 40d17af2
...@@ -35,11 +35,11 @@ export default class VariableQueryEditor extends PureComponent<Props> { ...@@ -35,11 +35,11 @@ export default class VariableQueryEditor extends PureComponent<Props> {
<InlineFormLabel width={10}>Query</InlineFormLabel> <InlineFormLabel width={10}>Query</InlineFormLabel>
<div className="gf-form-inline gf-form--grow"> <div className="gf-form-inline gf-form--grow">
<TextArea <TextArea
value={query || ''} defaultValue={query || ''}
placeholder="metric name or tags query" placeholder="metric name or tags query"
rows={1} rows={1}
className="gf-form-input" className="gf-form-input"
onChange={e => onChange(e.currentTarget.value)} onBlur={e => onChange(e.currentTarget.value)}
/> />
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment