Skip to content

Commit

Permalink
fix(multi-select): reset selectedIds when clearing selection (#1832)
Browse files Browse the repository at this point in the history
Fixes #1831
  • Loading branch information
keehun authored Oct 22, 2023
1 parent 7eef53d commit e3ab471
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MultiSelect/MultiSelect.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@
selectionCount="{checked.length}"
on:clear
on:clear="{() => {
selectedIds = [];
sortedItems = sortedItems.map((item) => ({
...item,
checked: false,
Expand Down

0 comments on commit e3ab471

Please sign in to comment.