We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ff33d7 commit a72f155Copy full SHA for a72f155
modules/@apostrophecms/modal/ui/apos/components/AposModal.vue
@@ -275,7 +275,7 @@ async function trapFocus() {
275
const firstElementToFocus = findPriorityElementOrFirst(elementsToFocus);
276
const foundPriorityElement = firstElementToFocus.hasAttribute('data-apos-focus-priority');
277
278
- focusElement(props.modalData.focusedElement, findPriorityElementOrFirst(elementsToFocus));
+ focusElement(props.modalData.focusedElement, firstElementToFocus);
279
280
// Components render at various times and can't be counted on to be available on modal's mount
281
// Update the trap focus list until a data-apos-focus-priority element is found or the retry limit is reached
0 commit comments