feat(select): enable programmatic selection

This commit is contained in:
Eric Liu 2020-01-12 12:01:40 -08:00
commit 2ac885c32e

View file

@ -27,6 +27,7 @@
setContext('Select', { selectedValue }); setContext('Select', { selectedValue });
$: errorId = `error-${id}`; $: errorId = `error-${id}`;
$: selectedValue.set(selected);
$: selected = $selectedValue; $: selected = $selectedValue;
$: { $: {
dispatch('change', $selectedValue); dispatch('change', $selectedValue);