Skip to content

Commit

Permalink
TEC-265: Prevent focus first on table headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Chamara Abesinghe committed Dec 5, 2023
1 parent 854bea7 commit 8a7b494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/src/directives/focus-first-element/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface FocusFirstHTMLElement extends HTMLElement {
const focusableElements =
'input:not([disabled]), select, textarea, [tabindex], [href]';
const excludeElements =
'button:not(.oxd-dialog-close-button,.modal-reset-button,[disabled])';
'button:not(.oxd-dialog-close-button,.modal-reset-button,[disabled]), i:not(.oxd-table-header-sort-icon)';
const firstFocusedElementsOnMounted = new Map<string | null, Element>();
const firstFocusedElementsOnUpdated = new Map<string | null, Element>();
let previosFocusedElement: Element | null;
Expand Down

0 comments on commit 8a7b494

Please sign in to comment.