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

This commit is contained in:
Dominik Prokop 2020-12-23 13:39:30 +01:00 committed by GitHub
parent 40d17af2e3
commit 12211e4a8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>