upgraded svelte-select, export fix

This commit is contained in:
Jan Prochazka
2022-02-13 09:14:03 +01:00
parent df52adc40f
commit 391c7a7b8f
3 changed files with 8 additions and 8 deletions

View File

@@ -44,9 +44,9 @@
<SvelteSelect
{...$$restProps}
items={options}
selectedValue={isMulti
? value?.map(item => options.find(x => x.value == item))
: options.find(x => x.value == value)}
value={isMulti
? _.compact(value?.map(item => options.find(x => x.value == item)) ?? [])
: options.find(x => x.value == value) ?? null}
on:select={e => {
if (isMulti) {
dispatch(