mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
try to fix reactivity
This commit is contained in:
parent
172f54ea31
commit
7b3144f27e
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@
|
||||||
if (values.includes(value) && !selected) {
|
if (values.includes(value) && !selected) {
|
||||||
return values.filter((i) => i !== value);
|
return values.filter((i) => i !== value);
|
||||||
} else if (selected && !values.includes(value)) {
|
} else if (selected && !values.includes(value)) {
|
||||||
return [...s, value];
|
return [...values, value];
|
||||||
}
|
}
|
||||||
return s;
|
return s;
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue