0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 14:12:36 -05:00

Only show dropdown when options contain items

This commit is contained in:
Florian Schroedl 2024-05-17 08:17:51 +02:00
parent b0dcbae3ac
commit 165e222117

View file

@ -178,9 +178,10 @@
:placeholder placeholder :placeholder placeholder
:type type}]) :type type}])
[:span {:class (stl/css :dropdown-button) (when (seq options)
:on-click toggle-dropdown} [:span {:class (stl/css :dropdown-button)
i/arrow] :on-click toggle-dropdown}
i/arrow])
[:& dropdown {:show (or is-open? false) [:& dropdown {:show (or is-open? false)
:on-close close-dropdown} :on-close close-dropdown}