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

This commit is contained in:
Gilles De Mey 2022-12-19 13:08:33 +01:00 committed by GitHub
parent 48b33ab521
commit 68b044fb7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>