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:
parent
d28c7cf061
commit
acae8708f5
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue