mirror of
https://github.com/penpot/penpot.git
synced 2025-05-25 00:46:11 +02:00
🐛 Fixes problem with picker
This commit is contained in:
parent
8732407a7f
commit
2660e914fc
3 changed files with 4 additions and 3 deletions
|
@ -229,5 +229,5 @@
|
||||||
(assoc-in [:workspace-local :picking-color?] true)
|
(assoc-in [:workspace-local :picking-color?] true)
|
||||||
(assoc ::md/modal {:id (random-uuid)
|
(assoc ::md/modal {:id (random-uuid)
|
||||||
:type :colorpicker
|
:type :colorpicker
|
||||||
:props {:on-close handle-change-color}
|
:props {:on-change handle-change-color}
|
||||||
:allow-click-outside true}))))))
|
:allow-click-outside true}))))))
|
||||||
|
|
|
@ -401,7 +401,8 @@
|
||||||
(when (or (not= new-value value) (not= new-opacity opacity))
|
(when (or (not= new-value value) (not= new-opacity opacity))
|
||||||
(reset! dirty? true))
|
(reset! dirty? true))
|
||||||
(reset! last-change [new-value new-opacity op1 op2])
|
(reset! last-change [new-value new-opacity op1 op2])
|
||||||
(on-change new-value new-opacity op1 op2))]
|
(when on-change
|
||||||
|
(on-change new-value new-opacity op1 op2)))]
|
||||||
|
|
||||||
(mf/use-effect
|
(mf/use-effect
|
||||||
(fn []
|
(fn []
|
||||||
|
|
|
@ -224,7 +224,7 @@
|
||||||
;; Everytime we finish retrieving a new URL we redraw the canvas
|
;; Everytime we finish retrieving a new URL we redraw the canvas
|
||||||
;; so even if we're not finished the user can start to pick basic
|
;; so even if we're not finished the user can start to pick basic
|
||||||
;; shapes
|
;; shapes
|
||||||
(mf/deps props fetch-pending)
|
(mf/deps fetch-pending)
|
||||||
(fn []
|
(fn []
|
||||||
(try
|
(try
|
||||||
(let [canvas-node (mf/ref-val canvas-ref)
|
(let [canvas-node (mf/ref-val canvas-ref)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue