mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix: use type=button in editor (#55731)
This commit is contained in:
parent
2bbc7c40e9
commit
4cd4bc84b5
@ -35,6 +35,7 @@ export const QueryEditorRow = ({
|
|||||||
aria-pressed={hidden}
|
aria-pressed={hidden}
|
||||||
aria-label="hide metric"
|
aria-label="hide metric"
|
||||||
className={styles.icon}
|
className={styles.icon}
|
||||||
|
type="button"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<IconButton
|
<IconButton
|
||||||
@ -44,6 +45,7 @@ export const QueryEditorRow = ({
|
|||||||
onClick={onRemoveClick || noop}
|
onClick={onRemoveClick || noop}
|
||||||
disabled={!onRemoveClick}
|
disabled={!onRemoveClick}
|
||||||
aria-label="remove metric"
|
aria-label="remove metric"
|
||||||
|
type="button"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
</InlineLabel>
|
</InlineLabel>
|
||||||
|
@ -47,6 +47,7 @@ export const SettingsEditorContainer = ({ label, children, hidden = false }: Pro
|
|||||||
className={cx('gf-form-label query-part', styles.button, segmentStyles)}
|
className={cx('gf-form-label query-part', styles.button, segmentStyles)}
|
||||||
onClick={() => setOpen(!open)}
|
onClick={() => setOpen(!open)}
|
||||||
aria-expanded={open}
|
aria-expanded={open}
|
||||||
|
type="button"
|
||||||
>
|
>
|
||||||
<Icon name={open ? 'angle-down' : 'angle-right'} aria-hidden="true" className={styles.icon} />
|
<Icon name={open ? 'angle-down' : 'angle-right'} aria-hidden="true" className={styles.icon} />
|
||||||
{label}
|
{label}
|
||||||
|
Loading…
Reference in New Issue
Block a user