Android Studio – TextField 'OnValueChange' called twice without entering any input
fun TextFieldWithIconsAndErrorLabel( text: String, charLimit: Int = Int.MAX_VALUE, keyboardType: KeyboardType = KeyboardType.Text, onValueChange: (String) -> Unit, ) { val keyboardController = LocalSoftwareKeyboardController.current var shouldShowMaxCharLimitError by remember { mutableStateOf(false) } BasicTextField( modifier = Modifier .fillMaxWidth(), value = text, onValueChange = {…