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:
parent
10174aa7bc
commit
6d1ff0cb49
1 changed files with 1 additions and 3 deletions
|
@ -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}]]]))
|
||||
|
|
Loading…
Add table
Reference in a new issue