mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
add dom/stop-propagation
This commit is contained in:
parent
71439637aa
commit
74c6228c25
1 changed files with 3 additions and 1 deletions
|
@ -63,7 +63,9 @@
|
|||
on-click
|
||||
(mf/use-fn
|
||||
(mf/deps type set-id)
|
||||
#(st/emit! (set-current-set set-id)))]
|
||||
(fn [event]
|
||||
(dom/stop-propagation event)
|
||||
(st/emit! (set-current-set set-id))))]
|
||||
[:div {:class (stl/css :set-item-container)
|
||||
:on-click on-click}
|
||||
[:div {:class (stl/css-case :set-item-group (= type :group)
|
||||
|
|
Loading…
Add table
Reference in a new issue