You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you are using a physical keyboard to type into a simulator TextField and use CMD-A to highlight everything and then delete it, the TextField begins having troubles with the cursor and text continues to get deleted as you type.
Affected platforms
Platform: iOS
Versions
Libraries:
Compose Multiplatform version: 1.6.2
Kotlin version: 1.9.23
OS version(s) MacOS Ventura 13.6.4
OS architecture (x86 or arm64): Arm64
Device: Simulator iOS 17.2 iPhone 15 Pro
To Reproduce
Steps to reproduce the behavior:
Run this code snippet:
fun MainViewController() =
ComposeUIViewController {
val value1 = remember { mutableStateOf("") }
val value2 = remember { mutableStateOf("") }
Column {
Spacer(modifier = Modifier.height(200.dp))
TextField(
modifier = Modifier.fillMaxWidth().height(100.dp).background(Color.Gray),
value = value1.value,
onValueChange = {
value1.value = it
}
)
TextField(
modifier = Modifier.fillMaxWidth().height(100.dp).background(Color.Gray),
value = value2.value,
onValueChange = {
value2.value = it
}
)
}
}
Type some text into field 1
Type some text into field 2
Use CMD-A to highlight all text and field 2 and press delete
Continue typing in field 2 and your text continues to get overridden.
Expected behavior
Typing continues as normal
Additional Context
Video has me typing CTRL-A but I was thinking windows. it was CMD-A
After doing the CMD-A I'm just trying to type "hello world" in both fields.
I've tried doing a long click in the field to get the select all cursor to appear and deleting things that way and that works okay. It appears to only be with CMD-A
I don't know if this would happen on a physical device with a Bluetooth keyboard attached.
brokentextfield.mov
The text was updated successfully, but these errors were encountered:
babramovitch
changed the title
[IOS-Simulator] TextField Text Cursor Jumps Around After Using CtrlA + Delete to clear all text.
[IOS-Simulator] TextField Text Cursor Jumps Around After Using CtrlA + Delete to clear all text preventing further text input.
May 9, 2024
babramovitch
changed the title
[IOS-Simulator] TextField Text Cursor Jumps Around After Using CtrlA + Delete to clear all text preventing further text input.
[IOS-Simulator] TextField Text Cursor Jumps Around After Using CMD+A then Delete to clear all text preventing further text input.
May 9, 2024
Describe the bug
When you are using a physical keyboard to type into a simulator TextField and use CMD-A to highlight everything and then delete it, the TextField begins having troubles with the cursor and text continues to get deleted as you type.
Affected platforms
Platform: iOS
Versions
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Typing continues as normal
Additional Context
Video has me typing CTRL-A but I was thinking windows. it was CMD-A
After doing the CMD-A I'm just trying to type "hello world" in both fields.
I've tried doing a long click in the field to get the select all cursor to appear and deleting things that way and that works okay. It appears to only be with CMD-A
I don't know if this would happen on a physical device with a Bluetooth keyboard attached.
brokentextfield.mov
The text was updated successfully, but these errors were encountered: