Page MenuHomePhabricator

HTMLButtonField should support the autofocus form descriptor property
Open, Needs TriagePublic

Description

autofocus is supported by HTMLTextField, HTMLTextAreaField and HTMLFileField. It would make sense for HTMLButtonField to also support the autofocus attribute. This would be handy for PrimaryAuthenticationProviders that implement authentication via redirection to an external identity provider, in that case logging in just takes the click of a button and it would be even easier if the button was focused automatically.