fix(insights): Fix timezone config popover issue (#21435)

This commit is contained in:
Julian Bez
2024-04-16 09:51:57 +01:00
committed by GitHub
parent 12ab08411e
commit 4493cc3855
2 changed files with 4 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ export type LemonInputSelectProps = Pick<
onBlur?: () => void
onInputChange?: (newValue: string) => void
'data-attr'?: string
popoverClassName?: string
}
export function LemonInputSelect({
@@ -50,6 +51,7 @@ export function LemonInputSelect({
disableFiltering = false,
allowCustomValues = false,
autoFocus = false,
popoverClassName,
...props
}: LemonInputSelectProps): JSX.Element {
const [showPopover, setShowPopover] = useState(false)
@@ -269,6 +271,7 @@ export function LemonInputSelect({
popoverFocusRef.current = true
e.stopPropagation()
}}
className={popoverClassName}
overlay={
<div className="space-y-px overflow-y-auto">
{visibleOptions.length ? (

View File

@@ -31,6 +31,7 @@ export function TimezoneConfig(): JSX.Element {
loading={currentTeamLoading}
disabled={currentTeamLoading}
value={[currentTeam.timezone]}
popoverClassName="z-[1000]"
onChange={([newTimezone]): void => {
// This is a string for a single-mode select, but typing is poor
if (!preflight?.available_timezones) {