Fixes tooltip issue with time picker and dashboard settings (#51836) (#51842)

(cherry picked from commit 777f0d532a)

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-07-07 07:31:59 +02:00
committed by GitHub
co-authored by Torkel Ödegaard
parent 1470e3db18
commit 82269e8520
2 changed files with 2 additions and 2 deletions
@@ -117,7 +117,7 @@ export function UnthemedTimeRangePicker(props: TimeRangePickerProps): ReactEleme
</ToolbarButton>
</Tooltip>
{isOpen && (
<FocusScope contain autoFocus restoreFocus>
<FocusScope contain autoFocus>
<section ref={ref} {...overlayProps} {...dialogProps}>
<TimePickerContent
timeZone={timeZone}
@@ -161,7 +161,7 @@ export function DashboardSettings({ dashboard, editview }: Props) {
const styles = getStyles(config.theme2);
return (
<FocusScope contain autoFocus restoreFocus>
<FocusScope contain autoFocus>
<div className="dashboard-settings" ref={ref} {...overlayProps} {...dialogProps}>
<PageToolbar title={`${dashboard.title} / Settings`} parent={folderTitle} onGoBack={onClose} />
<CustomScrollbar>