0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-23 23:35:58 -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) is-open? (:is-open? state)
;; Dropdown ;; Dropdown
dropdown-element* (mf/use-ref nil)
on-close-dropdown (mf/use-fn #(swap! state* assoc :is-open? false)) on-close-dropdown (mf/use-fn #(swap! state* assoc :is-open? false))
on-open-dropdown on-open-dropdown
@ -118,8 +117,7 @@
current-label] current-label]
[:> icon* {:icon-id i/arrow-down :class (stl/css :dropdown-button) :aria-hidden true}] [:> icon* {:icon-id i/arrow-down :class (stl/css :dropdown-button) :aria-hidden true}]
[:& dropdown {:show is-open? [:& dropdown {:show is-open?
:on-close on-close-dropdown :on-close on-close-dropdown}
:ref dropdown-element*}
[:& theme-options {:active-theme-paths active-theme-paths [:& theme-options {:active-theme-paths active-theme-paths
:themes themes :themes themes
:on-close on-close-dropdown}]]])) :on-close on-close-dropdown}]]]))