TimePicker: Fix time picker selection (#60104)

fix time picker selection
This commit is contained in:
Ashley Harrison 2022-12-13 14:11:15 +00:00 committed by GitHub
parent 109df85cae
commit 4e7a316903
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,10 +125,10 @@ export function TimeRangePicker(props: TimeRangePickerProps) {
</ToolbarButton> </ToolbarButton>
</Tooltip> </Tooltip>
{isOpen && ( {isOpen && (
<> <div>
<div role="presentation" className={cx(modalBackdrop, styles.backdrop)} {...underlayProps} /> <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 <TimePickerContent
timeZone={timeZone} timeZone={timeZone}
fiscalYearStartMonth={fiscalYearStartMonth} fiscalYearStartMonth={fiscalYearStartMonth}
@ -142,9 +142,9 @@ export function TimeRangePicker(props: TimeRangePickerProps) {
onChangeFiscalYearStartMonth={onChangeFiscalYearStartMonth} onChangeFiscalYearStartMonth={onChangeFiscalYearStartMonth}
hideQuickRanges={hideQuickRanges} hideQuickRanges={hideQuickRanges}
/> />
</FocusScope>
</section> </section>
</> </FocusScope>
</div>
)} )}
{timeSyncButton} {timeSyncButton}