Preferences: Can reset timezone preference back to default correctly (#68881)

* user essentials mob! 🔱

lastFile:public/app/core/components/SharedPreferences/SharedPreferences.tsx

* invert menuShouldPortal logic on TimeZonePicker and fix unit test

Co-authored-by: eledobleefe <laura.fernandez@grafana.com>
Co-authored-by: Joao Silva <joao.silva@grafana.com>
Co-authored-by: L-M-K-B <48948963+L-M-K-B@users.noreply.github.com>
Co-authored-by: joshhunt <josh@trtr.co>

---------

Co-authored-by: eledobleefe <laura.fernandez@grafana.com>
Co-authored-by: Joao Silva <joao.silva@grafana.com>
Co-authored-by: L-M-K-B <48948963+L-M-K-B@users.noreply.github.com>
Co-authored-by: joshhunt <josh@trtr.co>
This commit is contained in:
Ashley Harrison
2023-05-24 09:28:14 +01:00
committed by GitHub
co-authored by eledobleefe Joao Silva L-M-K-B joshhunt
parent 286b9e08e9
commit 2ceed6a169
5 changed files with 24 additions and 17 deletions
@@ -103,6 +103,7 @@ export const TimePickerFooter = (props: Props) => {
}
}}
onBlur={onToggleChangeTimeSettings}
menuShouldPortal={false}
/>
</section>
) : (
@@ -41,7 +41,7 @@ export const TimeZonePicker = (props: Props) => {
includeInternal = false,
disabled = false,
inputId,
menuShouldPortal = false,
menuShouldPortal = true,
openMenuOnFocus = true,
} = props;
const groupedTimeZones = useTimeZones(includeInternal);