0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

🐛 Fix ui problem when user selects a recent-color for adding to the assets

This commit is contained in:
Andrey Antukh 2024-02-20 15:28:16 +01:00
parent d28c7cf061
commit acae8708f5

View file

@ -422,8 +422,9 @@
(reset! dirty? (not= data new-data))
(reset! last-change new-data)
(when (fn? on-change)
(on-change new-data))))]
(if (fn? on-change)
(on-change new-data)
(st/emit! (dc/update-colorpicker new-data)))))]
(mf/with-effect []
#(when (and @dirty? @last-change on-close)