Skip to content

Commit

Permalink
TEC-265: Stop focus first directive from focusing on table columns
Browse files Browse the repository at this point in the history
  • Loading branch information
Chamara Abesinghe committed Dec 5, 2023
1 parent 8a7b494 commit 980ae68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/src/directives/focus-first-element/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export interface FocusFirstHTMLElement extends HTMLElement {
}

const focusableElements =
'input:not([disabled]), select, textarea, [tabindex], [href]';
'input:not([disabled]), select, textarea, [tabindex]:not(.oxd-table-header-sort-icon), [href]';
const excludeElements =
'button:not(.oxd-dialog-close-button,.modal-reset-button,[disabled]), i:not(.oxd-table-header-sort-icon)';
'button:not(.oxd-dialog-close-button,.modal-reset-button,[disabled])';
const firstFocusedElementsOnMounted = new Map<string | null, Element>();
const firstFocusedElementsOnUpdated = new Map<string | null, Element>();
let previosFocusedElement: Element | null;
Expand Down

0 comments on commit 980ae68

Please sign in to comment.