Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Add focus to fields in login, registration and forgot password forms #184

Open
mraible opened this issue Oct 18, 2016 · 1 comment
Open

Comments

@mraible
Copy link
Contributor

mraible commented Oct 18, 2016

This is pretty easy to do with Angular's $timeout service. For example:

$timeout(function (){angular.element('#sp-login').focus();});
@robertjd
Copy link
Member

It seems like we should just do this in the link function for the login directive, that way we can reference the element by the local field ID, and not a global element ID.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants