mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 22:53:02 +00:00
🐛 Fix ui problem when user selects a recent-color for adding to the assets
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user