prevent bug where selecting a relative range wouldn't apply if the absolute ranges were expanded

This commit is contained in:
Ashley Harrison 2022-12-09 14:07:54 +00:00
parent 51ae1f3d00
commit 7090443c12
No known key found for this signature in database
GPG Key ID: AEC29E54E8D7CD90

View File

@ -127,8 +127,8 @@ export function TimeRangePicker(props: TimeRangePickerProps) {
{isOpen && (
<>
<div role="presentation" className={cx(modalBackdrop, styles.backdrop)} {...underlayProps} />
<section className={styles.content} ref={ref} {...overlayProps} {...dialogProps}>
<FocusScope contain autoFocus>
<FocusScope contain autoFocus>
<section className={styles.content} ref={ref} {...overlayProps} {...dialogProps}>
<TimePickerContent
timeZone={timeZone}
fiscalYearStartMonth={fiscalYearStartMonth}
@ -142,8 +142,8 @@ export function TimeRangePicker(props: TimeRangePickerProps) {
onChangeFiscalYearStartMonth={onChangeFiscalYearStartMonth}
hideQuickRanges={hideQuickRanges}
/>
</FocusScope>
</section>
</section>
</FocusScope>
</>
)}