mirror of
https://github.com/penpot/penpot.git
synced 2025-07-16 00:25:12 +02: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! dirty? (not= data new-data))
|
||||||
(reset! last-change new-data)
|
(reset! last-change new-data)
|
||||||
|
|
||||||
(when (fn? on-change)
|
(if (fn? on-change)
|
||||||
(on-change new-data))))]
|
(on-change new-data)
|
||||||
|
(st/emit! (dc/update-colorpicker new-data)))))]
|
||||||
|
|
||||||
(mf/with-effect []
|
(mf/with-effect []
|
||||||
#(when (and @dirty? @last-change on-close)
|
#(when (and @dirty? @last-change on-close)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue