Respect initial selection on FancyCheckboxGroup[
This commit is contained in:
parent
8f99dcf579
commit
fea218a62f
|
@ -8,7 +8,7 @@
|
||||||
export let showSelectAll = true
|
export let showSelectAll = true
|
||||||
export let selectAllText = "Select all"
|
export let selectAllText = "Select all"
|
||||||
|
|
||||||
let selectedBooleans = reset()
|
let selectedBooleans = options.map(x => selected.indexOf(x) > -1)
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
|
|
||||||
$: updateSelected(selectedBooleans)
|
$: updateSelected(selectedBooleans)
|
||||||
|
|
Loading…
Reference in New Issue