mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 00:02:19 +00:00
fix: support enum for array list as multiselect
This commit is contained in:
@@ -648,6 +648,16 @@
|
||||
reorderable
|
||||
/>
|
||||
</div>
|
||||
{:else if enum_ && (Array.isArray(value) || value == undefined)}
|
||||
<div class="items-start">
|
||||
<MultiSelect
|
||||
{disabled}
|
||||
bind:value
|
||||
items={safeSelectItems(enum_)}
|
||||
onOpen={() => dispatch('focus')}
|
||||
reorderable
|
||||
/>
|
||||
</div>
|
||||
{:else if itemsType?.enum != undefined && Array.isArray(itemsType?.enum) && (Array.isArray(value) || value == undefined)}
|
||||
<div class="items-start">
|
||||
<MultiSelect
|
||||
|
||||
Reference in New Issue
Block a user