Closed codlab closed 1 year ago
Describe the bug TextFields (material or material3) do not behave as expected on iOS :
Android doesn't have those issues
Affected platforms
Versions
To Reproduce Steps and/or the code snippet to reproduce the behavior:
Expected behavior When the keyboard opens, it should display the expected ime type
Screenshots
Additional context
Here is a snippet reproducing the issue
val textStateUserName = remember { mutableStateOf(TextFieldValue("Default Value")) } TextField( modifier = Modifier .fillMaxWidth() value = textStateUserName.value, onValueChange = { textStateUserName.value = it viewModel.userNameChanged(it.text) }, singleLine = true, maxLines = 1, label = { Text(text = "Username") }, keyboardOptions = KeyboardOptions(imeAction = ImeAction.Go), keyboardActions = KeyboardActions { textStateUserName.value = TextFieldValue("onAny called") } )
Options described also here:
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Describe the bug TextFields (material or material3) do not behave as expected on iOS :
Android doesn't have those issues
Affected platforms
Versions
To Reproduce Steps and/or the code snippet to reproduce the behavior:
Expected behavior When the keyboard opens, it should display the expected ime type
Screenshots
Additional context
Here is a snippet reproducing the issue