Respect initial selection on FancyCheckboxGroup[

This commit is contained in:
Adria Navarro 2023-06-30 11:43:24 +01:00
parent 8f99dcf579
commit fea218a62f
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
export let showSelectAll = true
export let selectAllText = "Select all"
let selectedBooleans = reset()
let selectedBooleans = options.map(x => selected.indexOf(x) > -1)
const dispatch = createEventDispatcher()
$: updateSelected(selectedBooleans)