0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-22 22:49:01 -05:00

🐛 Fix colorpicker does not close upon switching to Dashboard

This commit is contained in:
Pablo Alba 2022-11-03 07:37:02 +01:00 committed by Andrés Moya
parent 2af28fef80
commit 2cd8b65a5c
2 changed files with 12 additions and 3 deletions

View file

@ -16,9 +16,9 @@
- Fix join nodes icon is active when 2 already joined nodes are selected [Taiga #4370](https://tree.taiga.io/project/penpot/issue/4370)
- Fix path nodes panel. "To curve" and "To corner" icons are active if node is already curved/cornered [Taiga #4371](https://tree.taiga.io/project/penpot/issue/4371)
- Fix displaying comments settings are not applied via "Comments" menu drop-down on the top navbar on view mode [Taiga #4389](https://tree.taiga.io/project/penpot/issue/4389)
- Fix bad behaviour on hovering and click nested artboards[Taiga #4018](https://tree.taiga.io/project/penpot/issue/4018) and [Taiga #4269](https://tree.taiga.io/project/penpot/us/4269)
- Fix bad behaviour on hovering and click nested artboards [Taiga #4018](https://tree.taiga.io/project/penpot/issue/4018) and [Taiga #4269](https://tree.taiga.io/project/penpot/us/4269)
- Fix lang autodetect issue [Taiga #4277](https://tree.taiga.io/project/penpot/issue/4277)
- Fix colorpicker does not close upon switching to Dashboard [Taiga #4408](https://tree.taiga.io/project/penpot/issue/4408)
## 1.16.0-beta

View file

@ -13,6 +13,7 @@
[app.main.data.exports :as de]
[app.main.data.modal :as modal]
[app.main.data.workspace :as dw]
[app.main.data.workspace.colors :as dc]
[app.main.data.workspace.libraries :as dwl]
[app.main.data.workspace.shortcuts :as sc]
[app.main.refs :as refs]
@ -434,10 +435,18 @@
zoom (mf/deref refs/selected-zoom)
params {:page-id page-id :file-id (:id file) :section "interactions"}
close-modals
(mf/use-callback
(fn []
(st/emit! (dc/stop-picker))
(st/emit! (modal/hide!))))
go-back
(mf/use-callback
(mf/deps project)
#(st/emit! (dw/go-to-dashboard project)))
(fn []
(close-modals)
(st/emit! (dw/go-to-dashboard project))))
go-viewer
(mf/use-callback