[v9.3.x] RelativeTimeRangePicker: Don't respond to submit event when nested in a form element (#60520)

RelativeTimeRangePicker: Don't respond to submit event when nested in a form element (#60495)

(cherry picked from commit 68b044fb7c)

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2022-12-19 07:21:53 -05:00
committed by GitHub
co-authored by Gilles De Mey
parent a8c188402a
commit 5a71779ea1
@@ -103,7 +103,7 @@ export function RelativeTimeRangePicker(props: RelativeTimeRangePickerProps) {
return (
<div className={styles.container} ref={setMarkerElement}>
<button className={styles.pickerInput} onClick={onOpen}>
<button className={styles.pickerInput} type="button" onClick={onOpen}>
<span className={styles.clockIcon}>
<Icon name="clock-nine" />
</span>