Skip to content
Snippets Groups Projects
Commit 59c15cca authored by Diana Huang's avatar Diana Huang Committed by GitHub
Browse files

Merge pull request #23 from edx/diana/handle-firefox-focus

Add workaround for Firefox focus issues.
parents ed7b87a8 279c9375
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,10 @@ function LtiConsumerXBlock(runtime, element) {
$(o.closeButton).on('keydown', function (e) {
if (e.which === 9) {
e.preventDefault();
$(modal_id).find('iframe')[0].contentWindow.focus();
// This is a workaround due to Firefox triggering focus calls oddly.
setTimeout(function () {
$modal.find('iframe')[0].contentWindow.focus();
}, 1);
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment