Skip to content

fix(sidebar): keep peeked sidebar open while the task Filter menu is open#3666

Merged
charlesvien merged 4 commits into
PostHog:mainfrom
aleexzxzxzx:posthog-code/fix-sidebar-peek-taskfilter
Jul 22, 2026
Merged

fix(sidebar): keep peeked sidebar open while the task Filter menu is open#3666
charlesvien merged 4 commits into
PostHog:mainfrom
aleexzxzxzx:posthog-code/fix-sidebar-peek-taskfilter

Conversation

@aleexzxzxzx

Copy link
Copy Markdown
Contributor

Problem

With sidebar hover-peek active, opening the tasks-header Filter dropdown and then moving the pointer off the panel collapsed the sidebar while the menu (rendered in a portal anchored to its trigger) stayed open, leaving it floating over the content, chasing its vanished anchor.

Same failure mode as #3483, but for the task Filter menu instead of the ProjectSwitcher.

Closes #3665

Changes

Before / after

video.mp4

How did you test this?

  • pnpm --filter @posthog/ui typecheck
  • Sidebar unit tests pass (46/46), including the existing peek-hold store tests.
  • Manually: collapsed sidebar → hover to peek → open Filter → move pointer out of the panel → sidebar stays; close menu → hover-collapse resumes.

…open

With hover-peek active, opening the tasks-header Filter dropdown and then
moving the pointer off the panel collapsed the sidebar while the menu
(rendered in a portal anchored to its trigger) stayed open, leaving it
floating over the content, chasing its vanished anchor.

Apply the same hold used by the ProjectSwitcher (PostHog#3484): TaskFilterMenu
holds the sidebar peek on open and releases it on close (and on unmount),
so the peek stays until the menu closes. Hover behaviour is unchanged when
no menu is open.

Generated-By: PostHog Code
Task-Id: 1252280f-2bb1-49bc-9f6a-fe86f670957e
@trunk-io

trunk-io Bot commented Jul 22, 2026

Copy link
Copy Markdown

😎 This pull request was merged.

@charlesvien

Copy link
Copy Markdown
Member

Thanks for this @aleexzxzxzx!

@aleexzxzxzx

Copy link
Copy Markdown
Contributor Author

@charlesvien happy to help!

@charlesvien
charlesvien merged commit 254afc4 into PostHog:main Jul 22, 2026
29 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sidebar hover-peek collapses under the open task Filter menu, leaving it floating

2 participants