Skip to content

Commit

Permalink
fix: (CXSPA-9021) Button Menu Focus not looped within the menu items.
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavSukhanov committed Dec 4, 2024
1 parent 11969ec commit c72762a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export class SkipFocusDirective implements OnChanges {
Array.from(focusableElements || []).forEach((el) => {
const element = el as HTMLElement;
const shouldSkip = skipSelectors.some((selector) => {
return (element as HTMLElement).matches(selector);
return element.matches(selector);
});
if (!shouldSkip && this.isElementVisible(element as HTMLElement)) {
if (!shouldSkip && this.isElementVisible(element)) {
element.setAttribute('tabindex', tabindex);
}
});
Expand Down

0 comments on commit c72762a

Please sign in to comment.