Skip to content

Commit

Permalink
TEC-265: Stop focus first directive from focusing on table columns (#744
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Chamara Abesinghe authored Dec 6, 2023
1 parent 854bea7 commit 29964f6
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 @@ -5,7 +5,7 @@ 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])';
const firstFocusedElementsOnMounted = new Map<string | null, Element>();
Expand Down

0 comments on commit 29964f6

Please sign in to comment.