'Jetpack Compose TextField weird behavior when deleting text
This video explains better, please watch: Video
The code is very simple:
@Composable
fun Main() {
var note by remember {
mutableStateOf(
LoremIpsum(40).values.first() //generate a random string that contains 40 words
)
}
TextField(value = note, onValueChange = { note = it })
}
I have tried pasting random strings and deleting them fast enough in a messaging app, to make sure that this problem does not cause by the soft keyboard/Google keyboard, and it's just working fine in the messaging app.
I don't understand why this could happen, could this be a bug with TextField?
You can download the project here, but basically, all the code has been posted above.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
