From 74c6228c25459a92c3d4fe8e6508299196aceb59 Mon Sep 17 00:00:00 2001 From: Akshay Gupta Date: Wed, 14 Aug 2024 17:15:30 +0530 Subject: [PATCH] add dom/stop-propagation --- frontend/src/app/main/ui/workspace/tokens/sets.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/sets.cljs b/frontend/src/app/main/ui/workspace/tokens/sets.cljs index e75a43ac35..2c369d4f58 100644 --- a/frontend/src/app/main/ui/workspace/tokens/sets.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/sets.cljs @@ -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)