Explore: removes handling onBlur action in Explore for Loki and Prometheus (#22768)

* Explore: turns off actions execution on blur for Loki

* Explore: turns off actions execution on blur for Prometheus

* Explore: updates snapshots for Loki & Prometheus after turning off onBlur
This commit is contained in:
Lukas Siatka
2020-03-13 12:00:02 +01:00
committed by GitHub
parent b15d0388ff
commit 2693f44a03
4 changed files with 4 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ export function LokiExploreQueryEditor(props: Props) {
datasource={datasource} datasource={datasource}
query={query} query={query}
onChange={onChange} onChange={onChange}
onBlur={() => {}}
onRunQuery={onRunQuery} onRunQuery={onRunQuery}
history={history} history={history}
data={data} data={data}

View File

@@ -99,6 +99,7 @@ exports[`LokiExploreQueryEditor should render component 1`] = `
} }
} }
history={Array []} history={Array []}
onBlur={[Function]}
onChange={[MockFunction]} onChange={[MockFunction]}
onRunQuery={[MockFunction]} onRunQuery={[MockFunction]}
query={ query={

View File

@@ -38,6 +38,7 @@ export function PromExploreQueryEditor(props: Props) {
query={query} query={query}
onRunQuery={onRunQuery} onRunQuery={onRunQuery}
onChange={onChange} onChange={onChange}
onBlur={() => {}}
history={history} history={history}
data={data} data={data}
ExtraFieldElement={ ExtraFieldElement={

View File

@@ -47,6 +47,7 @@ exports[`PromExploreQueryEditor should render component 1`] = `
} }
datasource={Object {}} datasource={Object {}}
history={Array []} history={Array []}
onBlur={[Function]}
onChange={[MockFunction]} onChange={[MockFunction]}
onRunQuery={[MockFunction]} onRunQuery={[MockFunction]}
query={ query={