Hamburger menu: picking an entry closes the whole panel

It stayed open on top of the dialog the entry had just opened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
MoepchiandClaude Opus 5.5 committed 2026-11-09 09:44:16 +00:00
1 parent 8a3e1c230e
commit 85fa73c7d6
1 file changed
+5
+5
View File
@@ -12655,6 +12655,11 @@ function AppInner() {
className={`ts-menubar-items${compactMenu ? " ts-nova-menu-panel" : ""}${
novaMenuOpen ? " ts-nova-menu-panel-open" : ""
}`}
// Picking an entry closes the whole ☰ panel, not just the submenu -
// otherwise it stays on top of the dialog the entry just opened.
onClick={(e) => {
if (compactMenu && (e.target as HTMLElement).closest(".ts-menu-item")) setNovaMenuOpen(false);
}}
>
<div className="ts-menubar-dropdown" ref={connectionsMenuRef}>
<button