mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-04 03:01:23 +01:00
fix(insights): Fix timezone config popover issue (#21435)
This commit is contained in:
@@ -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 ? (
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user