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

Long forms anchor at the bottom #9

Closed
erikberger opened this issue Feb 22, 2016 · 1 comment
Closed

Long forms anchor at the bottom #9

erikberger opened this issue Feb 22, 2016 · 1 comment

Comments

@erikberger
Copy link

If you have a long form with a lot of fields the modal opens at the bottom of the form. Not a huge deal, but you do need to scroll up to see the beginning of the form.

I believe that this is because the insert submit button is being focused on:

https://github.com/jtsternberg/Shortcode_Button/blob/master/js/shortcode-quicktag-button.js#L179

$c.modal.find( '.scb-insert' ).trigger( 'focus' );

Is it possible to focus on the first field instead?

@jtsternberg
Copy link
Owner

Hey @erikberger, I added a tabindex to the modal and focus on that instead. Thanks for reporting.

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

No branches or pull requests

2 participants