Funyinoluwa Kashimawo
10/03/2023, 4:41 PMvar title by remember { mutableStateOf("") }
and pass it down to the input and like this
Input(
inputType, attrs = Modifier
.toAttrs {
value?.let {
this.value("$it")
}
if (readOnly)
readOnly()
onChange {
onTextChanged(it.value)
}
}
)
the Input field is not updated onTextChange
But if I use this
var title by remember { mutableStateOf<String?>(null) }
then it works fineDavid Herman
10/03/2023, 4:43 PMFunyinoluwa Kashimawo
10/03/2023, 5:43 PMDavid Herman
10/03/2023, 6:51 PMsilk
packageFunyinoluwa Kashimawo
10/04/2023, 10:17 AM