mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 09:08:31 -05: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 ::md/modal {:id (random-uuid)
|
||||
:type :colorpicker
|
||||
:props {:on-close handle-change-color}
|
||||
:props {:on-change handle-change-color}
|
||||
:allow-click-outside true}))))))
|
||||
|
|
|
@ -401,7 +401,8 @@
|
|||
(when (or (not= new-value value) (not= new-opacity opacity))
|
||||
(reset! dirty? true))
|
||||
(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
|
||||
(fn []
|
||||
|
|
|
@ -224,7 +224,7 @@
|
|||
;; 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
|
||||
;; shapes
|
||||
(mf/deps props fetch-pending)
|
||||
(mf/deps fetch-pending)
|
||||
(fn []
|
||||
(try
|
||||
(let [canvas-node (mf/ref-val canvas-ref)
|
||||
|
|
Loading…
Add table
Reference in a new issue