0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-23 15:26:29 -05:00

🔥 Remove unused and incorrect ref passed to dropdown component

This commit is contained in:
Andrey Antukh 2025-02-04 12:40:28 +01:00
parent 10174aa7bc
commit 6d1ff0cb49

View file

@ -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}]]]))