Skip to content

Long forms anchor at the bottom #9

Closed

Description

@erikberger

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?

Activity

  1. jtsternberg commented on Feb 22, 2016

    @jtsternberg
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions