alorma/Compose-Settings

Checkboks in SettingsListMultiSelect don't respond to clicks.

Closed this issue · 0 comments

A click on Row toggles the state of the checkbox, but a click on the checkbox itself does not.

Visual:
example-1

It's probably related to this code:

onCheckedChange = { checked ->
if (checked) {
onRemove(index)
} else {
onAdd(index)
}
}

When the checkbox's state is changed to true, the index to the set should be added, not removed. The same thing is when the state is changed to false - the index should be removed.