mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 01:42:50 +08:00
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:
1 parent
8a3e1c230e
commit
85fa73c7d6
1 file changed
+5
@@ -12655,6 +12655,11 @@ function AppInner() {
|
|||||||
className={`ts-menubar-items${compactMenu ? " ts-nova-menu-panel" : ""}${
|
className={`ts-menubar-items${compactMenu ? " ts-nova-menu-panel" : ""}${
|
||||||
novaMenuOpen ? " ts-nova-menu-panel-open" : ""
|
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}>
|
<div className="ts-menubar-dropdown" ref={connectionsMenuRef}>
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in new issue
Block a user