0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-28 15:41:25 -05:00

🐛 Fix unlink library color when blur color picker input

This commit is contained in:
alonso.torres 2023-03-10 10:58:40 +01:00
parent ce85a1b1d5
commit 481e9b0d32
2 changed files with 6 additions and 4 deletions

View file

@ -26,6 +26,7 @@
- Changed the text dominant-baseline to use ideographic [Taiga #4791](https://tree.taiga.io/project/penpot/issue/4791)
- Viewer wrong translations [Github #3035](https://github.com/penpot/penpot/issues/3035)
- Fix problem with text editor in Safari
- Fix unlink library color when blur color picker input [#3026](https://github.com/penpot/penpot/issues/3026)
### :arrow_up: Deps updates

View file

@ -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