Hi, Just wondering if anyone has opinion on this.
I have the following code:
@Composable
fun SomeTextField(value: String, onChange: (String) -> Unit, ...) {
...
TextField(
value = value,
onValueChange = onChange,
...,
keyboardOptions = KeyboardOptions(
keyboardType = KeyboardType.NumberPassword,
imeAction = if (someState) ImeAction.Go else ImeAction.Done,
),
)
...
}
this line:
imeAction = if (someState) ImeAction.Go else ImeAction.Done,
causes the ios keyboard to hide and immediately show back up. I was wonder if doing so in compose is not advisable?