mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
Only show dropdown when options contain items
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user