From 429fc2383dc4df5cc451914f8bb4b0325d370cad Mon Sep 17 00:00:00 2001 From: Jason Verber Date: Thu, 1 Feb 2024 12:17:33 -0600 Subject: [PATCH] Fix #14691 DomHandler.getFocusableElements returns visible elements --- src/app/components/dom/domhandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/dom/domhandler.ts b/src/app/components/dom/domhandler.ts index f57abf9de9d..b6cc466f401 100755 --- a/src/app/components/dom/domhandler.ts +++ b/src/app/components/dom/domhandler.ts @@ -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;