How can I run validation when my users exit textField in compose?
I have a function that will check if my textField has any issues
fun hasError(textFieldLabel: String):Boolean{}
I want this function to run only when the user has finished entering text.
When the user exists the text field, we assume they're finished and I run hasError() on that field
Here is what didn't work for me
val focusManager = LocalFocusManager.current
focusManager.moveFocus(FocusDirection.Next)
FocusDirection.Next Only moves the focus when you decide its appropriate, but doesn't...