1
0
Fork 0
mirror of synced 2024-09-14 00:08:25 +12:00

Add multiselect for options is in

This commit is contained in:
Mel O'Hagan 2022-07-29 16:09:53 +01:00
parent 6e8ddc1cab
commit d41f813efb
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@
{error}
{disabled}
{readonly}
{value}
value={Array.isArray(value) ? value : [value]}
{options}
{placeholder}
{sort}

View file

@ -140,7 +140,7 @@
/>
{:else if ["string", "longform", "number", "formula"].includes(filter.type)}
<Input disabled={filter.noValue} bind:value={filter.value} />
{:else if filter.type === "array"}
{:else if filter.type === "array" || (filter.type === "options" && filter.operator === "oneOf")}
<Multiselect
disabled={filter.noValue}
options={getFieldOptions(filter.field)}