mirror of
https://github.com/mihonapp/mihon.git
synced 2025-02-23 15:34:09 +01:00
Fix WheelPicker Manual Input
This commit is contained in:
parent
c8ad6cdf31
commit
1c5a4d223c
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user