Respect initial selection on FancyCheckboxGroup[
This commit is contained in:
parent
8f99dcf579
commit
fea218a62f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue