Skip to content

Commit a72f155

Browse files
Update modules/@apostrophecms/modal/ui/apos/components/AposModal.vue
Co-authored-by: E.T <[email protected]>
1 parent 1ff33d7 commit a72f155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/@apostrophecms/modal/ui/apos/components/AposModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ async function trapFocus() {
275275
const firstElementToFocus = findPriorityElementOrFirst(elementsToFocus);
276276
const foundPriorityElement = firstElementToFocus.hasAttribute('data-apos-focus-priority');
277277
278-
focusElement(props.modalData.focusedElement, findPriorityElementOrFirst(elementsToFocus));
278+
focusElement(props.modalData.focusedElement, firstElementToFocus);
279279
280280
// Components render at various times and can't be counted on to be available on modal's mount
281281
// Update the trap focus list until a data-apos-focus-priority element is found or the retry limit is reached

0 commit comments

Comments
 (0)