From 19b9c696fcee1beb4a5e02ce340aa0518cd7a603 Mon Sep 17 00:00:00 2001 From: Dream <42954461+eureka0928@users.noreply.github.com> Date: Tue, 14 Apr 2026 04:33:32 -0400 Subject: [PATCH] :bug: Reset account submenu state when profile menu closes (#8953) Closes #8947 Signed-off-by: eureka928 --- CHANGES.md | 1 + frontend/src/app/main/ui/dashboard/sidebar.cljs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 910495858b..7863ad2ec1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -33,6 +33,7 @@ ### :bug: Bugs fixed +- Reset profile submenu state when the account menu closes (by @eureka928) [Github #8947](https://github.com/penpot/penpot/issues/8947) - Add export panel to inspect styles tab [Taiga #13582](https://tree.taiga.io/project/penpot/issue/13582) - Fix styles between grid layout inputs [Taiga #13526](https://tree.taiga.io/project/penpot/issue/13526) - Fix id prop on switch component [Taiga #13534](https://tree.taiga.io/project/penpot/issue/13534) diff --git a/frontend/src/app/main/ui/dashboard/sidebar.cljs b/frontend/src/app/main/ui/dashboard/sidebar.cljs index 2d3ddeb915..9e8de37d3e 100644 --- a/frontend/src/app/main/ui/dashboard/sidebar.cljs +++ b/frontend/src/app/main/ui/dashboard/sidebar.cljs @@ -1323,6 +1323,10 @@ (st/emit! (ptk/event ::ev/event {::ev/name "explore-pricing-click" ::ev/origin "dashboard" :section "sidebar"})) (dom/open-new-window "https://penpot.app/pricing")))] + (mf/with-effect [show-profile-menu?] + (when-not show-profile-menu? + (reset! sub-menu* nil))) + [:* (if (contains? cf/flags :nitrate) [:> nitrate-sidebar* {:profile profile :teams teams}]