Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import { useChannelItems } from "@posthog/ui/features/canvas/hooks/useChannelIte
import { useCommandCenterStore } from "@posthog/ui/features/command-center/commandCenterStore";
import { useFeatureFlag } from "@posthog/ui/features/feature-flags/useFeatureFlag";
import { SidebarItem } from "@posthog/ui/features/sidebar/components/SidebarItem";
import { useHoldSidebarPeek } from "@posthog/ui/features/sidebar/useHoldSidebarPeek";
import { useTaskContextMenu } from "@posthog/ui/features/tasks/useTaskContextMenu";
import { useRenameTask } from "@posthog/ui/features/tasks/useTaskMutations";
import { useTasks } from "@posthog/ui/features/tasks/useTasks";
Expand Down Expand Up @@ -84,6 +85,10 @@ function RecentSectionHeader({
onStatusChange: (value: TaskRunStatus | null) => void;
filtersActive: boolean;
}) {
// Hold the sidebar's hover-peek open while the Filter menu is open, so a
// pointer moving toward the menu can't collapse the peeked panel and strand
// the dropdown's portal anchor (matches TasksHeader/ProjectSwitcher).
const handleFilterOpenChange = useHoldSidebarPeek();
return (
<>
<div className="flex items-center gap-0.5 pr-1">
Expand All @@ -99,7 +104,7 @@ function RecentSectionHeader({
>
<MagnifyingGlass size={12} />
</button>
<DropdownMenu>
<DropdownMenu onOpenChange={handleFilterOpenChange}>
<DropdownMenuTrigger
render={
<button
Expand Down
Loading