mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
Only show dropdown when options contain items
This commit is contained in:
parent
b0dcbae3ac
commit
165e222117
1 changed files with 4 additions and 3 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue