diff --git a/public/app/features/templating/DefaultVariableQueryEditor.tsx b/public/app/features/templating/DefaultVariableQueryEditor.tsx index ce9fd79f793..ea5f2acaade 100644 --- a/public/app/features/templating/DefaultVariableQueryEditor.tsx +++ b/public/app/features/templating/DefaultVariableQueryEditor.tsx @@ -5,8 +5,6 @@ export default class DefaultVariableQueryEditor extends PureComponent this.handleChange(e)} + onBlur={e => this.handleBlur(e)} placeholder="metric name or tags query" required /> diff --git a/public/app/plugins/datasource/stackdriver/components/VariableQueryEditor.tsx b/public/app/plugins/datasource/stackdriver/components/VariableQueryEditor.tsx index c2fba266408..dae612fcc64 100644 --- a/public/app/plugins/datasource/stackdriver/components/VariableQueryEditor.tsx +++ b/public/app/plugins/datasource/stackdriver/components/VariableQueryEditor.tsx @@ -29,10 +29,6 @@ export class StackdriverVariableQueryEditor extends PureComponent this.onServiceChange(e)} label="Services" /> ); @@ -139,20 +135,20 @@ export class StackdriverVariableQueryEditor extends PureComponent this.onServiceChange(e)} label="Services" /> this.onMetricTypeChange(e)} label="Metric Types" /> {queryType !== MetricFindQueryTypes.ResourceTypes && ( ({ value: l, name: l }))} - onValueChange={this.onLabelKeyChange} + onValueChange={e => this.onLabelKeyChange(e)} label={ this.state.selectedQueryType === MetricFindQueryTypes.ResourceLabels ? 'Resource Label Key' @@ -169,13 +165,13 @@ export class StackdriverVariableQueryEditor extends PureComponent this.onServiceChange(e)} label="Services" /> this.onMetricTypeChange(e)} label="Metric Types" /> @@ -191,7 +187,7 @@ export class StackdriverVariableQueryEditor extends PureComponent this.handleQueryTypeChange(e)} label="Query Types" /> {this.renderQueryTypeSwitch(this.state.selectedQueryType)}