diff --git a/frontend/src/app/main/ui/workspace/colorpicker.cljs b/frontend/src/app/main/ui/workspace/colorpicker.cljs index cca2bde521..b80536e2cc 100644 --- a/frontend/src/app/main/ui/workspace/colorpicker.cljs +++ b/frontend/src/app/main/ui/workspace/colorpicker.cljs @@ -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)