Skip to content

Commit

Permalink
bugfix/inputchips-updates-twice (#1768)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud-zino committed Aug 9, 2023
1 parent 1c35e15 commit bc9e3e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/twenty-spoons-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@skeletonlabs/skeleton": patch
---

bugfix: InputChips updates bound value only once.
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,6 @@
$: classesInterface = `${cInterface}`;
$: classesChipList = `${cChipList}`;
$: classesInputField = `${cInputField}`;
$: chipValues =
value?.map((val, i) => {
if (chipValues[i]?.val === val) return chipValues[i];
return { id: Math.random(), val: val };
}) || [];
</script>

<div class="input-chip {classesBase}" class:opacity-50={$$restProps.disabled}>
Expand Down

0 comments on commit bc9e3e8

Please sign in to comment.