Fix WheelPicker Manual Input

This commit is contained in:
Roshan Varughese 2024-09-09 00:24:15 +12:00
parent c8ad6cdf31
commit 1c5a4d223c

View File

@ -166,6 +166,18 @@ private fun <T> WheelPicker(
showManualInput = false
}
},
onKeyboardAction = {
scope.launch {
items
.indexOfFirst { it.toString() == value.text }
.takeIf { it >= 0 }
?.apply {
internalOnSelectionChanged(this)
lazyListState.scrollToItem(this)
}
showManualInput = false
}
},
state = value,
lineLimits = TextFieldLineLimits.SingleLine,
keyboardOptions = KeyboardOptions(