1
0
Fork 0
mirror of synced 2024-07-04 22:11:23 +12:00

Fix error

This commit is contained in:
Adria Navarro 2023-10-03 13:12:50 +02:00
parent 0702bc6c33
commit f7e92992a8

View file

@ -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}