mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
Some fixes
This commit is contained in:
parent
94f5965155
commit
d8741808e5
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
<script>
|
||||
/**
|
||||
* Specify the selected tile's
|
||||
* @type {string}
|
||||
* @type {string[]}
|
||||
*/
|
||||
export let selectedValues = [];
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
|||
if (selected && i === -1) {
|
||||
a = a.concat([value]);
|
||||
} else if (!selected && i > -1) {
|
||||
a = a.splice(index, 1);
|
||||
a = a.splice(i, 1);
|
||||
}
|
||||
return a;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue