From c27639d02e0a14e0bb36ff10b46fad3cdb6e0716 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Fri, 17 Nov 2023 07:23:06 +0100 Subject: [PATCH] :bug: Fix after making 'Detach instance' in a component the swap sidebar was opened --- .../app/main/ui/workspace/sidebar/options/menus/component.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs index d1e21ec475..0fa947541d 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/component.cljs @@ -389,7 +389,8 @@ (let [do-action (fn [action event] (dom/stop-propagation event) - (action))] + (action) + (on-close))] [:& dropdown {:show show :on-close on-close} [:ul {:class (stl/css :custom-select-dropdown)} (for [entry menu-entries :when (not (nil? entry))]