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:
co-authored by
eledobleefe
Joao Silva
L-M-K-B
joshhunt
parent
286b9e08e9
commit
2ceed6a169
+1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user