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
b5d641ddfd
commit
4d82e78f2c
2 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@
|
|||
|
||||
<Button
|
||||
on:click="{() => {
|
||||
selectedValues3_control = selectedValues3.map((item) => {
|
||||
selectedValues3_control = selectedValues3_control.map((item) => {
|
||||
return { ...item, selected: false };
|
||||
});
|
||||
}}"
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
import { writable } from "svelte/store";
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
const _selectedValues = writable([]);
|
||||
const _selectedValues = writable(selectedValues);
|
||||
|
||||
$: _selectedValues.set(selectedValues);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue