CLOVIS
09/22/2021, 8:14 PM@Composable
fun App() {
var email by remember { mutableStateOf ("") }
TextInput(email) {
onChange { email = it.value }
}
}
However, it.value
is always an empty string. Am I doing something obviously wrong (like calling the wrong function), or is my problem more complicated?CLOVIS
09/22/2021, 8:17 PMit.value == "")
CLOVIS
09/22/2021, 8:19 PMonInput
, not onChange
.Big Chungus
09/22/2021, 8:56 PMCLOVIS
09/23/2021, 7:19 AMvalue
parameter allows to switch from one to the other, nothing about events.Big Chungus
09/23/2021, 7:28 AMMichael Paus
09/23/2021, 8:40 AMBig Chungus
09/23/2021, 8:42 AMBig Chungus
09/23/2021, 8:43 AMBig Chungus
09/23/2021, 8:44 AMBig Chungus
09/23/2021, 8:45 AMMichael Paus
09/23/2021, 8:49 AMBig Chungus
09/23/2021, 8:50 AMBig Chungus
09/23/2021, 8:51 AMCLOVIS
09/24/2021, 12:21 PM