mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
Some fixes
This commit is contained in:
parent
060b53bde0
commit
1d1fe47c0b
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@
|
||||||
const _selectedValues = writable(selectedValues);
|
const _selectedValues = writable(selectedValues);
|
||||||
|
|
||||||
function newArray(value, selected) {
|
function newArray(value, selected) {
|
||||||
let a = $_selectedValues;
|
let a = [...$_selectedValues];
|
||||||
const i = a.indexOf(value);
|
const i = a.indexOf(value);
|
||||||
if (selected && i === -1) {
|
if (selected && i === -1) {
|
||||||
a = a.push([value]);
|
a = a.push([value]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue