Skip to content

Commit 68679b5

Browse files
authored
Chore/input chip rollback (#1957)
1 parent 482ea13 commit 68679b5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/twelve-carrots-bathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@skeletonlabs/skeleton": patch
3+
---
4+
5+
chore: Rollback Input Chip change that introduced reactivity bug

packages/skeleton/src/lib/components/InputChip/InputChip.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@
223223
$: classesInterface = `${cInterface}`;
224224
$: classesChipList = `${cChipList}`;
225225
$: classesInputField = `${cInputField}`;
226+
$: chipValues =
227+
value?.map((val, i) => {
228+
if (chipValues[i]?.val === val) return chipValues[i];
229+
return { id: Math.random(), val: val };
230+
}) || [];
226231
</script>
227232
228233
<div class="input-chip {classesBase}" class:opacity-50={$$restProps.disabled}>

0 commit comments

Comments
 (0)