mirror of
https://github.com/penpot/penpot.git
synced 2026-08-27 23:28:38 +00:00
🐛 Fix ui problem when user selects a recent-color for adding to the assets
This commit is contained in:
parent
d28c7cf061
commit
acae8708f5
@ -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…
x
Reference in New Issue
Block a user