Verify paginated source history in the browser and fix QA route matching
This commit is contained in:
@@ -31,7 +31,7 @@ export const TenderDetailModal = () => {
|
||||
e.preventDefault(); e.stopPropagation(); setActiveTenderDetail(null); return;
|
||||
}
|
||||
if (e.key !== 'Tab') return;
|
||||
const focusable = [...dialogRef.current.querySelectorAll('button, a[href], input, select, textarea, [tabindex]')]
|
||||
const focusable = [...dialogRef.current.querySelectorAll('button, a[href], input, select, textarea, summary, [tabindex]')]
|
||||
.filter(el => el.tabIndex >= 0 && !el.disabled && el.getClientRects().length && !el.closest('[inert]'));
|
||||
const first = focusable[0], last = focusable.at(-1);
|
||||
if (!first) { e.preventDefault(); dialogRef.current.focus(); }
|
||||
|
||||
Reference in New Issue
Block a user