Fix error
This commit is contained in:
parent
0702bc6c33
commit
f7e92992a8
|
@ -27,10 +27,12 @@
|
||||||
value = Array.isArray(val) ? val : [val]
|
value = Array.isArray(val) ? val : [val]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$: selectedValue = multiple || !value ? value : value[0]
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Select
|
<Select
|
||||||
value={multiple ? value : value[0]}
|
value={selectedValue}
|
||||||
autocomplete
|
autocomplete
|
||||||
on:change={onChange}
|
on:change={onChange}
|
||||||
{options}
|
{options}
|
||||||
|
|
Loading…
Reference in New Issue