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

FF scrolls page instead of modal content when pressing cursor keys and PGUP, PGDWN #2

Open
samdark opened this issue Jul 13, 2012 · 1 comment
Labels

Comments

@samdark
Copy link
Owner

samdark commented Jul 13, 2012

If content of the modal is clicked once, it works fine.

@samdark samdark modified the milestone: 1.1 Dec 5, 2014
@samdark
Copy link
Owner Author

samdark commented Aug 4, 2015

Got that from Alexey Matveed via email. Not verified:

if (!localOptions.cloning) {
    overlay.data(pluginNamespace+'.el', el);
    $(el).data(pluginNamespace+'.parent', $(el).parent());
    openedModalElement = $(el).appendTo(overlay).prepend($('<a data-focus>').attr('tabindex', "-1")).show();
} else {
    openedModalElement = $(el).clone(true).appendTo(overlay).prepend($('<a data-focus>').attr('tabindex', "-1")).show();
}
overlay.find('[data-focus]').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

1 participant