mirror of
https://github.com/mihonapp/mihon.git
synced 2025-02-24 07:54:10 +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
|
showManualInput = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onKeyboardAction = {
|
||||||
|
scope.launch {
|
||||||
|
items
|
||||||
|
.indexOfFirst { it.toString() == value.text }
|
||||||
|
.takeIf { it >= 0 }
|
||||||
|
?.apply {
|
||||||
|
internalOnSelectionChanged(this)
|
||||||
|
lazyListState.scrollToItem(this)
|
||||||
|
}
|
||||||
|
showManualInput = false
|
||||||
|
}
|
||||||
|
},
|
||||||
state = value,
|
state = value,
|
||||||
lineLimits = TextFieldLineLimits.SingleLine,
|
lineLimits = TextFieldLineLimits.SingleLine,
|
||||||
keyboardOptions = KeyboardOptions(
|
keyboardOptions = KeyboardOptions(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user