We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 219ee65 commit 0cb21e5Copy full SHA for 0cb21e5
list/src/main/java/com/maxkeppeler/sheets/list/ListState.kt
@@ -90,8 +90,7 @@ internal class ListState(
90
private fun isValid(): Boolean = when (selection) {
91
is ListSelection.Single -> selectedOptions.isNotEmpty()
92
is ListSelection.Multiple -> {
93
- selectedOptions.isNotEmpty()
94
- && (selection.minChoices?.let { selectedOptions.size >= it }
+ (selection.minChoices?.let { selectedOptions.size >= it }
95
?: true)
96
&& (selection.maxChoices?.let { selectedOptions.size <= it }
97
0 commit comments