Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@
// Whenever the DOM changes ensure the list of focused elements is updated
function domChange() {
getFocusableElements();

// When an element is remove or become not focusable, but focus is on it,
// we need to ensure a now focus inside the trap, else the focus can escape the trap.
if (focusableElements.includes(document.activeElement) === false) {
setElementFocus();
}
}

// Start observing the target node for configured mutations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ <h4><strong><localize key="general_searchNoResult">Sorry, we can not find what y
ng-if="vm.lightbox.show"
items="vm.lightbox.items"
active-item-index="vm.lightbox.activeIndex"
umb-focus-lock="true"
on-close="vm.closeLightbox">
</umb-lightbox>

Expand Down