Skip to content

Commit 2f0ccf9

Browse files
committed
(fix) Unset isOverlayVisible and focus last active node after the hide animation is finished
1 parent f25da07 commit 2f0ccf9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/baguetteBox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,8 @@
481481
if (options.afterHide) {
482482
options.afterHide();
483483
}
484+
documentLastFocus && documentLastFocus.focus();
484485
}, 500);
485-
documentLastFocus && documentLastFocus.focus();
486486
}
487487

488488
function loadImage(index, callback) {

0 commit comments

Comments
 (0)