the-modal icon indicating copy to clipboard operation
the-modal copied to clipboard

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

Open samdark opened this issue 13 years ago • 1 comments

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

samdark avatar Jul 13 '12 15:07 samdark

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();

samdark avatar Aug 04 '15 19:08 samdark