Fix: use type=button in editor (#55731) (#55792)

(cherry picked from commit 4cd4bc84b5)

Co-authored-by: Giordano Ricci <me@giordanoricci.com>
This commit is contained in:
Grot (@grafanabot)
2022-09-27 09:51:09 +01:00
committed by GitHub
co-authored by Giordano Ricci
parent cddf4eea49
commit 9ab3fa611f
2 changed files with 3 additions and 0 deletions
@@ -35,6 +35,7 @@ export const QueryEditorRow = ({
aria-pressed={hidden}
aria-label="hide metric"
className={styles.icon}
type="button"
/>
)}
<IconButton
@@ -44,6 +45,7 @@ export const QueryEditorRow = ({
onClick={onRemoveClick || noop}
disabled={!onRemoveClick}
aria-label="remove metric"
type="button"
/>
</span>
</InlineLabel>
@@ -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"
>
<Icon name={open ? 'angle-down' : 'angle-right'} aria-hidden="true" className={styles.icon} />
{label}