Closed luludevmuniz closed 6 months ago
More info:
pressing Enter causes the cursor to go on the next line (TextField just doesn't show it)
adding a println shows in the logs that the actual text value has more lines
onValueChange = {
value = it
println("Value = $it")
},
On desktop, the cursor never gets removed from the first (single) line.
Could not reproduce it on 1.6.10-beta02.
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 After setting the TextField parameter singleLine to true or maxLines to 1 and writing some text in it, pressing Enter/Return causes the cursor to return to the start of the TextField and the user can write some invisible text behind the text.
Affected platforms
Versions
To Reproduce Steps and/or the code snippet to reproduce the behavior:
Code Snippet:
Expected behavior Don't allow the cursor to go back to the start of the composable.
Additional Context For some reason, the cursor is vanishing when I write the first text, so it's harder to see.