Skip to content

Commit

Permalink
Show the All button as selected when all items are selected
Browse files Browse the repository at this point in the history
  • Loading branch information
0nko committed Jan 30, 2024
1 parent 8fd1bac commit 68863ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fun <T> MultiSelectList(
allItemsButton?.let {
MultiSelectItem(
item = it.text,
isSelected = selectedItems.isEmpty(),
isSelected = selectedItems.size == items.size,
onItemToggled = it.onClicked,
modifier = Modifier.fillMaxWidth()
)
Expand Down

0 comments on commit 68863ac

Please sign in to comment.