From 790d532ceecfc6d0d037d4b61c98f8d702725ec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Mon, 4 Oct 2021 17:14:25 +0200 Subject: [PATCH] :sparkles: Hide after-delay trigger in non-frames --- .../ui/workspace/sidebar/options/menus/interactions.cljs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/interactions.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/interactions.cljs index 4ff90f210..14b96b2fb 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/interactions.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/interactions.cljs @@ -153,10 +153,9 @@ {:value (str (:event-type interaction)) :on-change change-event-type} (for [[value name] (event-type-names)] - [:option {:value (str value) - :disabled (and (= value :after-delay) - (not= (:type shape) :frame))} - name])]] + (when-not (and (= value :after-delay) + (not= (:type shape) :frame)) + [:option {:value (str value)} name]))]] ; Delay (when (cti/has-delay interaction)