mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
chore: reset selected value in controlled example
This commit is contained in:
parent
b380393973
commit
03b7be18ca
1 changed files with 3 additions and 1 deletions
|
@ -76,7 +76,9 @@
|
|||
|
||||
<Button
|
||||
on:click="{() => {
|
||||
selectedValues3 = [];
|
||||
selectedValues3 = selectedValues3.map((item) => {
|
||||
return { ...item, selected: false };
|
||||
});
|
||||
}}"
|
||||
>
|
||||
Reset selectedValues3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue