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;