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