0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-20 05:34:23 -05:00

🐛 Fix edit theme form auto submitting when pressing checkbox

This commit is contained in:
Andrés Moya 2024-11-13 13:34:09 +01:00 committed by Andrés Moya
parent 2a8ea8db62
commit bba504a16b

View file

@ -121,7 +121,9 @@
(let [name (-> (dom/get-current-target e)
(dom/get-data "name"))]
(on-edit name))))
on-toggle-set (fn [event]
(dom/prevent-default event)
(dom/stop-propagation event)
(on-toggle name))
@ -136,7 +138,6 @@
:data {:name name}
:draggable? true)]
[:div {:ref dref
:role "button"
:class (stl/css-case :set-item-container true
:dnd-over (= (:over dprops) :center)
:dnd-over-top (= (:over dprops) :top)