Hi
i am having difficulty in getting compose requestFocus to work as required on my login screen
Tower Guidev2
05/24/2023, 2:30 PM
i have two user input fields for username and password
each field has its own validation rules and when a validation error exists i display an error message and want to request focus on the field in error.
i have this code...
my issue is that when both fields are in error and the username always gets focus, which is annoying users when they are attempting to fix the password value.
is there any way i can detect when the user is entering the password, e.g. the password field has focus so as not to request focus on the username field?