mirror of
https://github.com/penpot/penpot.git
synced 2025-04-01 01:21:21 -05: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
|
@ -26,6 +26,7 @@
|
||||||
- Changed the text dominant-baseline to use ideographic [Taiga #4791](https://tree.taiga.io/project/penpot/issue/4791)
|
- 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)
|
- Viewer wrong translations [Github #3035](https://github.com/penpot/penpot/issues/3035)
|
||||||
- Fix problem with text editor in Safari
|
- 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
|
### :arrow_up: Deps updates
|
||||||
|
|
||||||
|
|
|
@ -65,11 +65,12 @@
|
||||||
|
|
||||||
handle-change-color
|
handle-change-color
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
(mf/deps @drag?)
|
(mf/deps current-color @drag?)
|
||||||
(fn [color]
|
(fn [color]
|
||||||
(let [recent-color (merge current-color color)
|
(when (not= (str/lower (:hex color)) (str/lower (:hex current-color)))
|
||||||
recent-color (dc/materialize-color-components recent-color)]
|
(let [recent-color (merge current-color color)
|
||||||
(st/emit! (dc/update-colorpicker-color recent-color (not @drag?))))))
|
recent-color (dc/materialize-color-components recent-color)]
|
||||||
|
(st/emit! (dc/update-colorpicker-color recent-color (not @drag?)))))))
|
||||||
|
|
||||||
handle-click-picker
|
handle-click-picker
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
|
|
Loading…
Add table
Reference in a new issue