From 165e222117faa746108b4a1fff0962527aed950c Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Fri, 17 May 2024 08:17:51 +0200 Subject: [PATCH] Only show dropdown when options contain items --- .../src/app/main/ui/workspace/tokens/editable_select.cljs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/editable_select.cljs b/frontend/src/app/main/ui/workspace/tokens/editable_select.cljs index 15c122779..357d88fa2 100644 --- a/frontend/src/app/main/ui/workspace/tokens/editable_select.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/editable_select.cljs @@ -178,9 +178,10 @@ :placeholder placeholder :type type}]) - [:span {:class (stl/css :dropdown-button) - :on-click toggle-dropdown} - i/arrow] + (when (seq options) + [:span {:class (stl/css :dropdown-button) + :on-click toggle-dropdown} + i/arrow]) [:& dropdown {:show (or is-open? false) :on-close close-dropdown}