mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
#1831: Reset selectedIds upon clearing of ListBoxSelection
This commit is contained in:
parent
7eef53d57c
commit
a5100b9436
1 changed files with 1 additions and 0 deletions
|
@ -393,6 +393,7 @@
|
||||||
selectionCount="{checked.length}"
|
selectionCount="{checked.length}"
|
||||||
on:clear
|
on:clear
|
||||||
on:clear="{() => {
|
on:clear="{() => {
|
||||||
|
selectedIds = [];
|
||||||
sortedItems = sortedItems.map((item) => ({
|
sortedItems = sortedItems.map((item) => ({
|
||||||
...item,
|
...item,
|
||||||
checked: false,
|
checked: false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue