Skip to content

Commit

Permalink
Merge pull request #14861 from primefaces/revert-14692-fix/14691-getF…
Browse files Browse the repository at this point in the history
…ocusableElements-ancestors-display-none

Revert "Fix #14691 DomHandler.getFocusableElements returns visible elements"
  • Loading branch information
cetincakiroglu authored Feb 22, 2024
2 parents c41db92 + e0f9282 commit a1c0139
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 (this.isVisible(focusableElement) && focusableElement.getComputedStyle(focusableElement).display != 'none' && getComputedStyle(focusableElement).visibility != 'hidden') visibleFocusableElements.push(focusableElement);
if (getComputedStyle(focusableElement).display != 'none' && getComputedStyle(focusableElement).visibility != 'hidden') visibleFocusableElements.push(focusableElement);
}

return visibleFocusableElements;
Expand Down

0 comments on commit a1c0139

Please sign in to comment.