Skip to content

Commit

Permalink
Fix primefaces#14691 DomHandler.getFocusableElements returns visible …
Browse files Browse the repository at this point in the history
…elements
  • Loading branch information
JasonVerberSagent committed Feb 1, 2024
1 parent e5cc49b commit 429fc23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/dom/domhandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ export class DomHandler {
let visibleFocusableElements = [];

for (let focusableElement of focusableElements) {
if (getComputedStyle(focusableElement).display != 'none' && getComputedStyle(focusableElement).visibility != 'hidden') visibleFocusableElements.push(focusableElement);
if (this.isVisible(focusableElement) && focusableElement.getComputedStyle(focusableElement).display != 'none' && getComputedStyle(focusableElement).visibility != 'hidden') visibleFocusableElements.push(focusableElement);
}

return visibleFocusableElements;
Expand Down

0 comments on commit 429fc23

Please sign in to comment.