Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Trap focus while loading
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyapps committed Aug 29, 2018
1 parent 0000b52 commit 072c417
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dist/jquery.fancybox.js
Expand Up @@ -2481,11 +2481,11 @@
if (!$el.length) {
$el = current.$content.find("button,:input,[tabindex],a").filter(":not(.fancybox-close-small):enabled:visible:first");
}
}

$el = $el && $el.length ? $el : self.$refs.container;
$el = $el && $el.length ? $el : self.$refs.container;

$el.trigger("focus");
}
$el.trigger("focus");
},

// Activates current instance - brings container to the front and enables keyboard,
Expand Down

0 comments on commit 072c417

Please sign in to comment.