diff --git a/src/app/components/dom/domhandler.ts b/src/app/components/dom/domhandler.ts index f57abf9de9d..bde26767804 100755 --- a/src/app/components/dom/domhandler.ts +++ b/src/app/components/dom/domhandler.ts @@ -630,7 +630,8 @@ export class DomHandler { let visibleFocusableElements = []; for (let focusableElement of focusableElements) { - if (getComputedStyle(focusableElement).display != 'none' && getComputedStyle(focusableElement).visibility != 'hidden') visibleFocusableElements.push(focusableElement); + const computedStyle = getComputedStyle(focusableElement); + if (this.isVisible(focusableElement) && computedStyle.display != 'none' && computedStyle.visibility != 'hidden') visibleFocusableElements.push(focusableElement); } return visibleFocusableElements;