0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 00:01:51 -05:00

🐛 Fix problem with shadow menu

This commit is contained in:
alonso.torres 2021-06-25 10:34:51 +02:00
parent 85a6edb1fd
commit 91b6a0bf69

View file

@ -70,7 +70,9 @@
(fn [value]
(when (or (not valid?) (valid? value))
(do (st/emit! (dch/update-shapes ids #(assoc-in % [:shadow index attr] value)))
(when update-ref (dom/set-value! (mf/ref-val update-ref) value)))))))
(let [update-node (and update-ref (mf/ref-val update-ref))]
(when update-node
(dom/set-value! update-node value))))))))
update-color
(fn [index]