From 6d1ff0cb497325b2c890e0322f46f5cf64cc2651 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 4 Feb 2025 12:40:28 +0100 Subject: [PATCH] :fire: Remove unused and incorrect ref passed to dropdown component --- frontend/src/app/main/ui/workspace/tokens/theme_select.cljs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/theme_select.cljs b/frontend/src/app/main/ui/workspace/tokens/theme_select.cljs index 397bbb70b..f62ebadfa 100644 --- a/frontend/src/app/main/ui/workspace/tokens/theme_select.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/theme_select.cljs @@ -95,7 +95,6 @@ is-open? (:is-open? state) ;; Dropdown - dropdown-element* (mf/use-ref nil) on-close-dropdown (mf/use-fn #(swap! state* assoc :is-open? false)) on-open-dropdown @@ -118,8 +117,7 @@ current-label] [:> icon* {:icon-id i/arrow-down :class (stl/css :dropdown-button) :aria-hidden true}] [:& dropdown {:show is-open? - :on-close on-close-dropdown - :ref dropdown-element*} + :on-close on-close-dropdown} [:& theme-options {:active-theme-paths active-theme-paths :themes themes :on-close on-close-dropdown}]]]))