0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

🐛 Fix opacity in color picker

This commit is contained in:
Eva 2022-09-20 15:42:57 +02:00 committed by Alejandro Alonso
parent bea96cb586
commit f444d3d01d

View file

@ -67,7 +67,7 @@
(mf/use-fn
(mf/deps @drag?)
(fn [color]
(let [recent-color (merge color)
(let [recent-color (merge current-color color)
recent-color (dc/materialize-color-components recent-color)]
(when (not @drag?)
(st/emit! (dwl/add-recent-color recent-color)))