Closed jf closed 1 month ago
I'm OK with supporting autofocus as a feature. I'm not sure whether we want it to default to on, and certainly there should be a way to configure the behavior. We should have tests that checks whether it is set depending on configured behavior. And if we are doing it for these, we should consider doing it for other cases as well (OTP, recovery key, maybe others).
ok. I didnt think about the other forms, but yes, that makes sense. I will get to this soon-ish, but give me some time.
@jf are you still planning to work on this?
hi @jeremyevans so sorry about this. My apologies. I've moved on from using rodauth (no fault of rodauth's, btw), and this has slipped my mind. If I ever come back to using rodauth, this will be something I will work on. Again, my apologies.
No problem, thanks for getting back to me.
Note:
autocomplete
,inputmode
, etc. because for HTML, settingautofocus="<any string>"
will only serve to activateautofocus
autofocus
on multiple fields (only the first field will getautofocus
-ed), I opted to haveautofocus
for both the login, and the password field, so whenrodauth.skip_login_field_on_login?
is true, the autofocus then goes to the password field