From 2693f44a037db77b4f8e36a378cac62b539360d9 Mon Sep 17 00:00:00 2001 From: Lukas Siatka Date: Fri, 13 Mar 2020 12:00:02 +0100 Subject: [PATCH] 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 --- .../datasource/loki/components/LokiExploreQueryEditor.tsx | 1 + .../__snapshots__/LokiExploreQueryEditor.test.tsx.snap | 1 + .../datasource/prometheus/components/PromExploreQueryEditor.tsx | 1 + .../__snapshots__/PromExploreQueryEditor.test.tsx.snap | 1 + 4 files changed, 4 insertions(+) diff --git a/public/app/plugins/datasource/loki/components/LokiExploreQueryEditor.tsx b/public/app/plugins/datasource/loki/components/LokiExploreQueryEditor.tsx index 18b95bf4609..8ddda562862 100644 --- a/public/app/plugins/datasource/loki/components/LokiExploreQueryEditor.tsx +++ b/public/app/plugins/datasource/loki/components/LokiExploreQueryEditor.tsx @@ -66,6 +66,7 @@ export function LokiExploreQueryEditor(props: Props) { datasource={datasource} query={query} onChange={onChange} + onBlur={() => {}} onRunQuery={onRunQuery} history={history} data={data} diff --git a/public/app/plugins/datasource/loki/components/__snapshots__/LokiExploreQueryEditor.test.tsx.snap b/public/app/plugins/datasource/loki/components/__snapshots__/LokiExploreQueryEditor.test.tsx.snap index ac55777fa65..badd8b9155c 100644 --- a/public/app/plugins/datasource/loki/components/__snapshots__/LokiExploreQueryEditor.test.tsx.snap +++ b/public/app/plugins/datasource/loki/components/__snapshots__/LokiExploreQueryEditor.test.tsx.snap @@ -99,6 +99,7 @@ exports[`LokiExploreQueryEditor should render component 1`] = ` } } history={Array []} + onBlur={[Function]} onChange={[MockFunction]} onRunQuery={[MockFunction]} query={ diff --git a/public/app/plugins/datasource/prometheus/components/PromExploreQueryEditor.tsx b/public/app/plugins/datasource/prometheus/components/PromExploreQueryEditor.tsx index ed63fbc9444..f7f8d9cf34e 100644 --- a/public/app/plugins/datasource/prometheus/components/PromExploreQueryEditor.tsx +++ b/public/app/plugins/datasource/prometheus/components/PromExploreQueryEditor.tsx @@ -38,6 +38,7 @@ export function PromExploreQueryEditor(props: Props) { query={query} onRunQuery={onRunQuery} onChange={onChange} + onBlur={() => {}} history={history} data={data} ExtraFieldElement={ diff --git a/public/app/plugins/datasource/prometheus/components/__snapshots__/PromExploreQueryEditor.test.tsx.snap b/public/app/plugins/datasource/prometheus/components/__snapshots__/PromExploreQueryEditor.test.tsx.snap index a7a90d2cd84..f8995e8918a 100644 --- a/public/app/plugins/datasource/prometheus/components/__snapshots__/PromExploreQueryEditor.test.tsx.snap +++ b/public/app/plugins/datasource/prometheus/components/__snapshots__/PromExploreQueryEditor.test.tsx.snap @@ -47,6 +47,7 @@ exports[`PromExploreQueryEditor should render component 1`] = ` } datasource={Object {}} history={Array []} + onBlur={[Function]} onChange={[MockFunction]} onRunQuery={[MockFunction]} query={