mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
try to fix reactivity
This commit is contained in:
parent
70d50f7b20
commit
677f6b5308
1 changed files with 4 additions and 2 deletions
|
@ -18,9 +18,11 @@
|
|||
import { writable } from "svelte/store";
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
const _selectedValues = writable([]);
|
||||
const _selectedValues = writable(
|
||||
selectedValues.map((s) => (s.value ? s.value : s))
|
||||
);
|
||||
|
||||
$: _selectedValues.set(selectedValues);
|
||||
$: _selectedValues.set(selectedValues.map((s) => (s.value ? s.value : s)));
|
||||
|
||||
setContext("SelectableTileGroup", {
|
||||
_light: light,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue