mirror of
https://github.com/penpot/penpot.git
synced 2025-01-20 13:42:59 -05:00
🐛 Fix edit theme form auto submitting when pressing checkbox
This commit is contained in:
parent
2a8ea8db62
commit
bba504a16b
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue