We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 494d7d2 + e898b6b commit 1a51bf8Copy full SHA for 1a51bf8
1 file changed
lib/helpers/focusManager.js
@@ -10,6 +10,9 @@ function handleBlur(event) {
10
function handleFocus(event) {
11
if (needToFocus) {
12
needToFocus = false;
13
+ if (!modalElement) {
14
+ return;
15
+ }
16
// need to see how jQuery shims document.on('focusin') so we don't need the
17
// setTimeout, firefox doesn't support focusin, if it did, we could focus
18
// the the element outisde of a setTimeout. Side-effect of this
0 commit comments