Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autofocus with modal.js #3451

Closed
reldridge80 opened this issue May 11, 2012 · 2 comments
Closed

Autofocus with modal.js #3451

reldridge80 opened this issue May 11, 2012 · 2 comments
Labels

Comments

@reldridge80
Copy link

Input elements autofocus not working on modal popups.

@fat
Copy link
Member

fat commented May 20, 2012

there is no auto focus. You need to call focus() on the elements manually

@fat fat closed this as completed May 20, 2012
@hiroshi
Copy link

hiroshi commented Jan 29, 2013

I'v done it with:

$(".modal").on('shown', function() {
    $(this).find("[autofocus]:first").focus();
});

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

No branches or pull requests

3 participants