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

This commit is contained in:
Gilles De Mey authored and GitHub committed 2022-12-19 13:08:33 +01:00
1 parent 48b33ab521
commit 68b044fb7c
1 file changed
+1 -1
@@ -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>