Skip to content

Commit

Permalink
Fix initial focus handling in lightbox with Bootstrap 5. (#4223)
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala authored Jan 31, 2025
1 parent a57038f commit d9d268d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/bootstrap5/js/lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ VuFind.register('lightbox', function Lightbox() {
// remove nodes on whose click, the modal closes
var nodesWhichAreNotCloseTargets = focusableNodes.filter(function nodeFilter(node) {
return !node.hasAttribute("data-lightbox-close") && (
!node.hasAttribute("data-dismiss") ||
node.getAttribute("data-dismiss") !== "modal"
!node.hasAttribute("data-bs-dismiss") ||
node.getAttribute("data-bs-dismiss") !== "modal"
);
});

Expand Down

0 comments on commit d9d268d

Please sign in to comment.