mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
feat(select): enable programmatic selection
This commit is contained in:
parent
3cbb903e42
commit
2ac885c32e
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue