mirror of
https://github.com/penpot/penpot.git
synced 2025-05-23 09:26:12 +02:00
🐛 Fix unlink library color when blur color picker input
This commit is contained in:
parent
ce85a1b1d5
commit
481e9b0d32
2 changed files with 6 additions and 4 deletions
|
@ -65,11 +65,12 @@
|
|||
|
||||
handle-change-color
|
||||
(mf/use-fn
|
||||
(mf/deps @drag?)
|
||||
(mf/deps current-color @drag?)
|
||||
(fn [color]
|
||||
(let [recent-color (merge current-color color)
|
||||
recent-color (dc/materialize-color-components recent-color)]
|
||||
(st/emit! (dc/update-colorpicker-color recent-color (not @drag?))))))
|
||||
(when (not= (str/lower (:hex color)) (str/lower (:hex current-color)))
|
||||
(let [recent-color (merge current-color color)
|
||||
recent-color (dc/materialize-color-components recent-color)]
|
||||
(st/emit! (dc/update-colorpicker-color recent-color (not @drag?)))))))
|
||||
|
||||
handle-click-picker
|
||||
(mf/use-fn
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue