From 4cd4bc84b5521063cd5e1db6a7eaa6d7f1d5c7a9 Mon Sep 17 00:00:00 2001 From: Giordano Ricci Date: Tue, 27 Sep 2022 09:20:23 +0100 Subject: [PATCH] Fix: use type=button in editor (#55731) --- .../elasticsearch/components/QueryEditor/QueryEditorRow.tsx | 2 ++ .../components/QueryEditor/SettingsEditorContainer.tsx | 1 + 2 files changed, 3 insertions(+) diff --git a/public/app/plugins/datasource/elasticsearch/components/QueryEditor/QueryEditorRow.tsx b/public/app/plugins/datasource/elasticsearch/components/QueryEditor/QueryEditorRow.tsx index 0ee4faf69ae..ce7aeac97e3 100644 --- a/public/app/plugins/datasource/elasticsearch/components/QueryEditor/QueryEditorRow.tsx +++ b/public/app/plugins/datasource/elasticsearch/components/QueryEditor/QueryEditorRow.tsx @@ -35,6 +35,7 @@ export const QueryEditorRow = ({ aria-pressed={hidden} aria-label="hide metric" className={styles.icon} + type="button" /> )} diff --git a/public/app/plugins/datasource/elasticsearch/components/QueryEditor/SettingsEditorContainer.tsx b/public/app/plugins/datasource/elasticsearch/components/QueryEditor/SettingsEditorContainer.tsx index a7d64e95f93..f9ec8a44278 100644 --- a/public/app/plugins/datasource/elasticsearch/components/QueryEditor/SettingsEditorContainer.tsx +++ b/public/app/plugins/datasource/elasticsearch/components/QueryEditor/SettingsEditorContainer.tsx @@ -47,6 +47,7 @@ export const SettingsEditorContainer = ({ label, children, hidden = false }: Pro className={cx('gf-form-label query-part', styles.button, segmentStyles)} onClick={() => setOpen(!open)} aria-expanded={open} + type="button" >