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} {error}
{disabled} {disabled}
{readonly} {readonly}
{value} value={Array.isArray(value) ? value : [value]}
{options} {options}
{placeholder} {placeholder}
{sort} {sort}

View File

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