We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f091ca commit b5a9343Copy full SHA for b5a9343
compose/snippets/src/main/java/com/example/compose/snippets/touchinput/focus/FocusSnippets.kt
@@ -297,7 +297,7 @@ private fun RequestFocus2() {
297
private fun Capture() {
298
var text by remember { mutableStateOf("") }
299
// [START android_compose_touchinput_focus_capture]
300
- val textField = FocusRequester()
+ val textField = remember { FocusRequester() }
301
302
TextField(
303
value = text,
0 commit comments