mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -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-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}
|
||||
|
Loading…
Reference in New Issue
Block a user