fix(desktop): keep projects list expanded when using the add-repo menu

Merged
AV
3mo ago
+5-0

Selecting any item in the PROJECTS header's add-repository dropdown ("Open from folder", "Clone from URL", …) collapsed the projects list. The dropdown content portals to document.body, but React synthetic events still bubble up the component tree to the header row's click-to-collapse handler.

Restores the stopPropagation guard on the dropdown content that #5956 introduced and its revert (#5996) removed — this piece was an independent fix that got swept out with the sort feature.

https://claude.ai/code/session_01SSUQYFamkYAjs5sDQC5RLS


Open in Stage

Summary by cubic

Keep the Projects list expanded when selecting items in the add-repository menu. Stops React event bubbling by calling stopPropagation on the dropdown content’s click and keydown so the header’s collapse toggle doesn’t trigger.