0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 08:20:45 -05:00

🐛 Fix multiple constraints dropdown not showing 'mixed'

This commit is contained in:
Belén Albeza 2024-06-05 14:53:35 +02:00
parent da40d662be
commit c8ff8fcbf7

View file

@ -209,12 +209,12 @@
[:div {:class (stl/css :contraints-selects)}
[:div {:class (stl/css :horizontal-select)}
[:& select
{:default-value (d/nilv (d/name constraints-h) "scale")
{:default-value (if (not= constraints-h :multiple) (d/nilv (d/name constraints-h) "scale") "")
:options options-h
:on-change on-constraint-h-select-changed}]]
[:div {:class (stl/css :vertical-select)}
[:& select
{:default-value (d/nilv (d/name constraints-v) "scale")
{:default-value (if (not= constraints-v :multiple) (d/nilv (d/name constraints-v) "scale") "")
:options options-v
:on-change on-constraint-v-select-changed}]]
(when first-level?