Skip to content

Commit 3ed64a5

Browse files
authored
Update chips from values (#2637)
1 parent 8f44173 commit 3ed64a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/holocene/input/chip-input.svelte

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
$: chips, ($values = chips);
3030
$: invalid = $values.some((chip) => !validator(chip));
3131
32+
values.subscribe((updatedChips) => {
33+
chips = updatedChips;
34+
});
35+
3236
let className = '';
3337
export { className as class };
3438

0 commit comments

Comments
 (0)