🐛 Reset account submenu state when profile menu closes (#8953)

Closes #8947

Signed-off-by: eureka928 <meobius123@gmail.com>
This commit is contained in:
Dream 2026-04-14 04:33:32 -04:00 committed by GitHub
parent 4703fe6e3b
commit 19b9c696fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -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)

View File

@ -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}]