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

Commit 072c417

Browse files
committed
Trap focus while loading
1 parent 0000b52 commit 072c417

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dist/jquery.fancybox.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2481,11 +2481,11 @@
24812481
if (!$el.length) {
24822482
$el = current.$content.find("button,:input,[tabindex],a").filter(":not(.fancybox-close-small):enabled:visible:first");
24832483
}
2484+
}
24842485

2485-
$el = $el && $el.length ? $el : self.$refs.container;
2486+
$el = $el && $el.length ? $el : self.$refs.container;
24862487

2487-
$el.trigger("focus");
2488-
}
2488+
$el.trigger("focus");
24892489
},
24902490

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

0 commit comments

Comments
 (0)