Skip to content

Commit

Permalink
Fix selection
Browse files Browse the repository at this point in the history
  • Loading branch information
greenart7c3 committed Nov 11, 2024
1 parent 398f6ad commit a46e1d3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -619,12 +619,14 @@ fun PermissionCard(
.fillMaxWidth()
.clickable {
acceptEventsGroup[index].value = !acceptEventsGroup[index].value
item.second.forEach { it.checked.value = acceptEventsGroup[index].value }
},
) {
Checkbox(
checked = acceptEventsGroup[index].value,
onCheckedChange = { _ ->
acceptEventsGroup[index].value = !acceptEventsGroup[index].value
item.second.forEach { it.checked.value = acceptEventsGroup[index].value }
},
colors = CheckboxDefaults.colors().copy(
uncheckedBorderColor = Color.Gray,
Expand Down

0 comments on commit a46e1d3

Please sign in to comment.